0021208: Performance issue when loading SMESH with an hdf file containing a big mesh

Fix reading nodes from a new HDF file
This commit is contained in:
eap 2012-03-14 15:03:06 +00:00
parent d69431f0bf
commit c080bab83c

View File

@ -358,7 +358,7 @@ void SMESH_PreMeshInfo::hdf2meshInfo( const std::string& name,
int medType = info[i++]; int medType = info[i++];
int nbElems = info[i++]; int nbElems = info[i++];
me2sme = med2smesh.find( (MED::EGeometrieElement) medType ); me2sme = med2smesh.find( (MED::EGeometrieElement) medType );
if ( me2sme != me2smeEnd ) if ( me2sme != me2smeEnd && nbElems )
setNb( me2sme->second, nbElems ); setNb( me2sme->second, nbElems );
} }
} }