]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
0021673: [CEA 566] Bug in SauvWriter when writing meshes having no family ids on...
authoreap <eap@opencascade.com>
Tue, 19 Jun 2012 09:57:58 +0000 (09:57 +0000)
committereap <eap@opencascade.com>
Tue, 19 Jun 2012 09:57:58 +0000 (09:57 +0000)
    Preview that family ids of nodes can be missing

src/MEDLoader/SauvWriter.cxx

index 60dc249288b5650709051ec16b463b2babe55f34..7f3fa31d1d0cb0253cbd819c99e6409695605b07 100644 (file)
@@ -355,6 +355,7 @@ void SauvWriter::fillFamilySubMeshes()
       int dimRelExt = dims[ iDim ];
       MEDCouplingAutoRefCountObjectPtr< MEDCouplingMesh > mesh = _fileMesh->getGenMeshAtLevel(dimRelExt);
       const DataArrayInt * famIds = _fileMesh->getFamilyFieldAtLevel(dimRelExt);
+      if ( !famIds ) continue;
 
       int curFamID = 0;
       SubMesh* curSubMesh = addSubMesh( "", dimRelExt ); // submesh of zero family