[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user