From c080bab83c0a3936fe06ca786691d5e029323a6f Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 14 Mar 2012 15:03:06 +0000 Subject: [PATCH] 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh Fix reading nodes from a new HDF file --- src/SMESH_I/SMESH_PreMeshInfo.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } } -- 2.30.2