From: eap Date: Tue, 19 Jun 2012 09:57:58 +0000 (+0000) Subject: 0021673: [CEA 566] Bug in SauvWriter when writing meshes having no family ids on... X-Git-Tag: V6_main_FINAL~638 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=251ce3c0dda7d262f6cf9ddd05882bec87853539;p=tools%2Fmedcoupling.git 0021673: [CEA 566] Bug in SauvWriter when writing meshes having no family ids on nodes. Preview that family ids of nodes can be missing --- diff --git a/src/MEDLoader/SauvWriter.cxx b/src/MEDLoader/SauvWriter.cxx index 60dc24928..7f3fa31d1 100644 --- a/src/MEDLoader/SauvWriter.cxx +++ b/src/MEDLoader/SauvWriter.cxx @@ -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