HYBRIDPlugin_Hypothesis::TSetStrings groupsToRemove = HYBRIDPlugin_Hypothesis::GetGroupsToRemove(_hyp);
const bool toMakeGroupsOfDomains = HYBRIDPlugin_Hypothesis::GetToMakeGroupsOfDomains( _hyp );
- Ok = readGMFFile(&mgHybrid,
- aResultFileName.ToCString(),
- this,
- theHelper, aNodeByHybridId, aFaceByHybridId, aNodeToHybridIdMap,
- aNodeGroupByHybridId, anEdgeGroupByHybridId, aFaceGroupByHybridId,
- groupsToRemove, toMakeGroupsOfDomains);
+ Ok = Ok && readGMFFile(&mgHybrid,
+ aResultFileName.ToCString(),
+ this,
+ theHelper, aNodeByHybridId, aFaceByHybridId, aNodeToHybridIdMap,
+ aNodeGroupByHybridId, anEdgeGroupByHybridId, aFaceGroupByHybridId,
+ groupsToRemove, toMakeGroupsOfDomains);
updateMeshGroups(theHelper->GetMesh(), groupsToRemove);
//removeEmptyGroupsOfDomains( theHelper->GetMesh(), notEmptyAsWell );
int IsVertexRequired( int iNode )
{
- return ! ( iNode < int( _xyz.size() - _nodeSize.size() ));
+ return ! ( iNode < int( NbNodes() - _nodeSize.size() ));
}
double GetSizeAtVertex( int iNode )
{
- return IsVertexRequired( iNode ) ? _nodeSize[ iNode - _xyz.size() + _nodeSize.size() ] : 0.;
+ return IsVertexRequired( iNode ) ? _nodeSize[ iNode - NbNodes() + _nodeSize.size() ] : 0.;
}
};
}
// compute
- return _libData->Compute();
+ bool ok = _libData->Compute();
+
+ GetLog(); // write a log file
+ _logFile = ""; // not to write it again
+
+ return ok;
#endif
}
errStr = SMESH_Comment("system(mg-hybrid.exe ...) command failed with error: ")
<< strerror( errno );
- GetLog(); // write a log file
- _logFile = ""; // not to write it again
-
return !err;
}