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_0b1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5fb884c16a31c6abb79e985f3ef2e5a5fdf3626f;p=modules%2Fmed.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)