Skip to content

Commit

Permalink
Fem: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Oct 5, 2024
1 parent b9c70a1 commit 8058dcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Fem/App/FemMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ std::set<int> FemMesh::getNodesBySolid(const TopoDS_Solid &solid) const
}

#pragma omp parallel for schedule(dynamic)
for (size_t i = 0; i < nodes.size(); ++i) {
for (int i = 0; i < static_cast<int>(nodes.size()); ++i) {
const SMDS_MeshNode* aNode = nodes[i];
double xyz[3];
aNode->GetXYZ(xyz);
Expand Down Expand Up @@ -942,7 +942,7 @@ std::set<int> FemMesh::getNodesByFace(const TopoDS_Face &face) const
}

#pragma omp parallel for schedule(dynamic)
for (size_t i = 0; i < nodes.size(); ++i) {
for (int i = 0; i < static_cast<int>(nodes.size()); ++i) {
const SMDS_MeshNode* aNode = nodes[i];
double xyz[3];
aNode->GetXYZ(xyz);
Expand Down Expand Up @@ -992,7 +992,7 @@ std::set<int> FemMesh::getNodesByEdge(const TopoDS_Edge &edge) const
}

#pragma omp parallel for schedule(dynamic)
for (size_t i = 0; i < nodes.size(); ++i) {
for (int i = 0; i < static_cast<int>(nodes.size()); ++i) {
const SMDS_MeshNode* aNode = nodes[i];
double xyz[3];
aNode->GetXYZ(xyz);
Expand Down Expand Up @@ -1041,7 +1041,7 @@ std::set<int> FemMesh::getNodesByVertex(const TopoDS_Vertex &vertex) const
}

#pragma omp parallel for schedule(dynamic)
for (size_t i = 0; i < nodes.size(); ++i) {
for (int i = 0; i < static_cast<int>(nodes.size()); ++i) {
const SMDS_MeshNode* aNode = nodes[i];
double xyz[3];
aNode->GetXYZ(xyz);
Expand Down

0 comments on commit 8058dcf

Please sign in to comment.