From: Anthony GEAY Date: Mon, 11 Jan 2021 20:50:36 +0000 (+0100) Subject: Suppress default rev nodal computation in case of num of nodes. X-Git-Tag: V9_7_0a1~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9ce755f83045baa31871e61e3f0a919c181d151c;p=tools%2Fmedcoupling.git Suppress default rev nodal computation in case of num of nodes. --- diff --git a/src/MEDLoader/MEDFileMesh.cxx b/src/MEDLoader/MEDFileMesh.cxx index 990048aab..27c1836a5 100644 --- a/src/MEDLoader/MEDFileMesh.cxx +++ b/src/MEDLoader/MEDFileMesh.cxx @@ -3035,7 +3035,6 @@ void MEDFileUMesh::dispatchLoadedPart(med_idt fid, const MEDFileUMeshL2& loaderl if(!mrs || mrs->isGlobalNodeNumFieldReading()) _global_num_coords=loaderl2.getCoordsGlobalNum(); _part_coords=loaderl2.getPartDefOfCoo(); - computeRevNum(); } MEDFileUMesh::~MEDFileUMesh() @@ -5486,7 +5485,6 @@ void MEDFileUMesh::setRenumFieldArr(int meshDimRelToMaxExt, DataArrayIdType *ren throw INTERP_KERNEL::Exception("MEDFileUMesh::setRenumFieldArr : the coordinates have not been set !"); renumArr->checkNbOfTuplesAndComp(_coords->getNumberOfTuples(),1,"MEDFileUMesh::setRenumArr : Problem in size of node numbering arr ! "); _num_coords.takeRef(renumArr); - computeRevNum(); return ; } if(meshDimRelToMaxExt>1) diff --git a/src/MEDLoader/MEDFileMesh.hxx b/src/MEDLoader/MEDFileMesh.hxx index f50321917..bded6ff44 100644 --- a/src/MEDLoader/MEDFileMesh.hxx +++ b/src/MEDLoader/MEDFileMesh.hxx @@ -332,6 +332,7 @@ MCAuto& coords, MCAuto& partCoords, MCAuto getDirectUndergroundSingleGeoTypeMeshes(int meshDimRelToMax) const; MEDLOADER_EXPORT MEDCoupling1GTUMesh *getDirectUndergroundSingleGeoTypeMesh(INTERP_KERNEL::NormalizedCellType gt) const; MEDLOADER_EXPORT DataArrayIdType *extractFamilyFieldOnGeoType(INTERP_KERNEL::NormalizedCellType gt) const; @@ -385,7 +386,6 @@ MCAuto& coords, MCAuto& partCoords, MCAuto& ms) const; - void computeRevNum() const; void synchronizeTinyInfoOnLeaves() const; void changeFamilyIdArr(mcIdType oldId, mcIdType newId); std::list< MCAuto > getAllNonNullFamilyIds() const; diff --git a/src/MEDLoader/Swig/MEDLoaderCommon.i b/src/MEDLoader/Swig/MEDLoaderCommon.i index b1176fe83..741e4adea 100644 --- a/src/MEDLoader/Swig/MEDLoaderCommon.i +++ b/src/MEDLoader/Swig/MEDLoaderCommon.i @@ -1431,6 +1431,7 @@ namespace MEDCoupling MEDCouplingUMesh *getLevelM2Mesh(bool renum=false) const; MEDCouplingUMesh *getLevelM3Mesh(bool renum=false) const; void forceComputationOfParts() const; + void computeRevNum() const; // void setFamilyNameAttachedOnId(int id, const std::string& newFamName); void setCoords(DataArrayDouble *coords); diff --git a/src/MEDLoader/Swig/MEDLoaderTest3.py b/src/MEDLoader/Swig/MEDLoaderTest3.py index 94003d98f..cc6a05d94 100644 --- a/src/MEDLoader/Swig/MEDLoaderTest3.py +++ b/src/MEDLoader/Swig/MEDLoaderTest3.py @@ -288,6 +288,7 @@ class MEDLoaderTest3(unittest.TestCase): renumNode=DataArrayInt.New() renumNode.setValues([10,11,12,13,14,15,16,17,18],9,1) mm.setRenumFieldArr(1,renumNode) + mm.computeRevNum() mm.setMeshAtLevel(-1,m1,True); mm.setMeshAtLevel(0,m,True); mm.setMeshAtLevel(-2,m2,True);