From: Anthony Geay Date: Fri, 12 Oct 2018 11:18:10 +0000 (+0200) Subject: Acceleration is also for MEDReader now X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c3f6661a88286cceec299e091d646ca2aedbb6ef;p=tools%2Fmedcoupling.git Acceleration is also for MEDReader now --- diff --git a/src/MEDLoader/MEDFileEntities.cxx b/src/MEDLoader/MEDFileEntities.cxx index ec3348a62..a3ef490d5 100644 --- a/src/MEDLoader/MEDFileEntities.cxx +++ b/src/MEDLoader/MEDFileEntities.cxx @@ -33,7 +33,7 @@ MEDFileStaticEntities::MEDFileStaticEntities(const std::vector< std::pair > *entities) { if(!entities) - return new MEDFileAllStaticEntites; + return nullptr; else return new MEDFileStaticEntities(*entities); } @@ -41,7 +41,7 @@ MEDFileEntities *MEDFileEntities::BuildFrom(const std::vector< std::pair pflName=MEDLoaderBase::buildEmptyString(MED_NAME_SIZE); - INTERP_KERNEL::AutoPtr locName=MEDLoaderBase::buildEmptyString(MED_NAME_SIZE); - med_geometry_type mgeoti; - med_entity_type menti(ConvertIntoMEDFileType(type,geoType,mgeoti)); - _field_pm_pt_pd.resize(nbProfiles); - for(int i=0;i=nbProfiles2?MED_DESCENDING_FACE:MED_DESCENDING_EDGE;//not enough words to describe the beauty - nbProfiles=std::max(nbProfiles1,nbProfiles2); - _field_pm_pt_pd.resize(nbProfiles); - for(int i=0;i MEDFileFieldPerMeshPerType::Aggregate(int &start, const std::vector >& pms, const std::vector< std::vector< std::pair > >& dts, INTERP_KERNEL::NormalizedCellType gt, MEDFileFieldPerMesh *father, std::vector > >& extractInfo)