From: ageay Date: Fri, 29 Nov 2013 07:17:59 +0000 (+0000) Subject: Optimization of reading process to reduce at most copies. X-Git-Tag: V7_3_1b1~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f8b010c61aab93227cd87b5b16515801fb50fb8e;p=tools%2Fmedcoupling.git Optimization of reading process to reduce at most copies. Externalize famIds for new MEDReader to perform filtering on output datasets. --- diff --git a/src/MEDLoader/MEDFileFieldOverView.cxx b/src/MEDLoader/MEDFileFieldOverView.cxx index ebead6485..f219d829d 100644 --- a/src/MEDLoader/MEDFileFieldOverView.cxx +++ b/src/MEDLoader/MEDFileFieldOverView.cxx @@ -602,6 +602,19 @@ MEDUMeshMultiLev::MEDUMeshMultiLev(const MEDFileUMesh *m, const std::vector > numIdsSafe(sz); + std::vector numIds(sz); + bool n(true); + for(std::size_t i=0;iextractNumberFieldOnGeoType(gts[i]); + numIds[i]=numIdsSafe[i]; + if(!numIds[i]) + n=false; + } + if(n) + _cell_num_ids=DataArrayInt::Aggregate(numIds); } void MEDUMeshMultiLev::selectPartOfNodes(const DataArrayInt *pflNodes)