From 251ce3c0dda7d262f6cf9ddd05882bec87853539 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 19 Jun 2012 09:57:58 +0000 Subject: [PATCH] 0021673: [CEA 566] Bug in SauvWriter when writing meshes having no family ids on nodes. Preview that family ids of nodes can be missing --- src/MEDLoader/SauvWriter.cxx | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2