X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FMEDFileJoint.cxx;h=a1ed652a702e9f9ff53e858b992982964589860d;hb=88916ccf9c681624b682d10a62c1ee376324c946;hp=8e7d6f3c1883a44afa347714bde4cb97ede64142;hpb=392b6949b0e81a257445b9d00d15345ab7e8248c;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/MEDFileJoint.cxx b/src/MEDLoader/MEDFileJoint.cxx index 8e7d6f3c1..a1ed652a7 100644 --- a/src/MEDLoader/MEDFileJoint.cxx +++ b/src/MEDLoader/MEDFileJoint.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D +// Copyright (C) 2007-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -357,7 +357,7 @@ bool MEDFileJointOneStep::isEqual(const MEDFileJointOneStep *other) const if ( getNumberOfCorrespondences() != other->getNumberOfCorrespondences() ) return false; - std::vector found( getNumberOfCorrespondences(), false ); + std::vector found( getNumberOfCorrespondences(), false ); for(int i=0; i); @@ -545,20 +547,22 @@ bool MEDFileJoint::isEqual(const MEDFileJoint *other) const return false; if(_domain_number!=other->_domain_number) return false; - std::vector found( getNumberOfSteps(), false ); - for(int i=0; igetNumberOfSteps()) + return false; + std::vector found(nbTS,false); + for(int i=0;iisEqual(other->getStepAtPos(j))) + if(!found[j] && getStepAtPos(i)->isEqual(other->getStepAtPos(j))) { - found[ j ] = true; + found[j]=true; break; } } - if ( j == getNumberOfSteps() ) + if(j==nbTS) return false; } return true;