FEM: remove trailing spaces and newlines when writing input files for solvers

This commit is contained in:
lyphrowny
2024-06-20 00:21:45 +03:00
parent 7ff379d60c
commit 4e2e81b68a
4 changed files with 12 additions and 7 deletions

View File

@@ -2360,10 +2360,12 @@ void FemMesh::writeABAQUS(const std::string& Filename,
}
else {
if (first_line) {
anABAQUS_Output << "," << std::endl;
anABAQUS_Output << "," << std::endl << *kt;
first_line = false;
}
anABAQUS_Output << *kt << ", ";
else {
anABAQUS_Output << ", " << *kt;
}
}
}
anABAQUS_Output << std::endl;