From: eap Date: Wed, 14 Mar 2012 15:03:06 +0000 (+0000) Subject: 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh X-Git-Tag: V6_5_0a1~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c080bab83c0a3936fe06ca786691d5e029323a6f;p=modules%2Fsmesh.git 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh Fix reading nodes from a new HDF file --- diff --git a/src/SMESH_I/SMESH_PreMeshInfo.cxx b/src/SMESH_I/SMESH_PreMeshInfo.cxx index 31cd9aeb7..50652425c 100644 --- a/src/SMESH_I/SMESH_PreMeshInfo.cxx +++ b/src/SMESH_I/SMESH_PreMeshInfo.cxx @@ -358,7 +358,7 @@ void SMESH_PreMeshInfo::hdf2meshInfo( const std::string& name, int medType = info[i++]; int nbElems = info[i++]; me2sme = med2smesh.find( (MED::EGeometrieElement) medType ); - if ( me2sme != me2smeEnd ) + if ( me2sme != me2smeEnd && nbElems ) setNb( me2sme->second, nbElems ); } }