FEM: Remove set but unused variable

This commit is contained in:
Chris Hennes
2024-06-21 15:31:14 -05:00
committed by Yorik van Havre
parent 2e85c4fd95
commit 94360c706e
2 changed files with 3 additions and 3 deletions

View File

@@ -1526,7 +1526,7 @@ Py::Dict FemMeshPy::getNodes() const
Base::Matrix4D Mtrx = getFemMeshPtr()->getTransform();
SMDS_NodeIteratorPtr aNodeIter = getFemMeshPtr()->getSMesh()->GetMeshDS()->nodesIterator();
for (int i = 0; aNodeIter->more(); i++) {
while (aNodeIter->more()) {
const SMDS_MeshNode* aNode = aNodeIter->next();
Base::Vector3d vec(aNode->X(), aNode->Y(), aNode->Z());
// Apply the matrix to hold the BoundBox in absolute space.

View File

@@ -411,11 +411,11 @@ void writeToFile(std::string fileName,
}
SMDS_ElemIteratorPtr nIt = elem->nodesIterator();
fprintf(fptr, "%d", EID);
for (int iN = 0; nIt->more(); ++iN) {
while (nIt->more()) {
nSrc = static_cast<const SMDS_MeshNode*>(nIt->next());
NID = nSrc->GetID();
fprintf(fptr, ", %d", NID);
} // for iN
}
fprintf(fptr, "\n");
} // while print
if (requiredType == 4) {