FEM: Remove set but unused variable
This commit is contained in:
committed by
Yorik van Havre
parent
2e85c4fd95
commit
94360c706e
@@ -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.
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user