[FEM] fix a variable casting

- reported by MSVC not to cast a float to a double but as double directly

- also remove some superfluous Boolean comparisons
This commit is contained in:
Uwe
2022-06-15 03:35:11 +02:00
parent 4f03c996bd
commit a289ec4a06
3 changed files with 9 additions and 11 deletions

View File

@@ -1085,7 +1085,7 @@ std::set<int> FemMesh::getEdgesOnly(void) const
break;
}
}
if (edgeBelongsToAFace == false)
if (!edgeBelongsToAFace)
resultIDs.insert(aEdge->GetID());
}
@@ -1144,7 +1144,7 @@ std::set<int> FemMesh::getFacesOnly(void) const
break;
}
}
if (faceBelongsToAVolume == false)
if (!faceBelongsToAVolume)
resultIDs.insert(aFace->GetID());
}
@@ -2172,7 +2172,7 @@ void FemMesh::writeABAQUS(const std::string &Filename, int elemParam, bool group
anABAQUS_Output << ", " << *kt;
}
else {
if (first_line == true) {
if (first_line) {
anABAQUS_Output << "," << std::endl;
first_line = false;
}
@@ -2232,7 +2232,7 @@ void FemMesh::writeABAQUS(const std::string &Filename, int elemParam, bool group
anABAQUS_Output << elsetname << std::endl;
// groups
if (groupParam == false) {
if (!groupParam) {
anABAQUS_Output.close();
}
else {