]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Minor bug: MEDFileParameterMultiTS::getPosOfTimeStep() was improperly testing iterati...
authorabn <adrien.bruneton@cea.fr>
Mon, 3 Mar 2014 11:15:35 +0000 (12:15 +0100)
committerabn <adrien.bruneton@cea.fr>
Mon, 3 Mar 2014 11:15:35 +0000 (12:15 +0100)
src/MEDLoader/MEDFileParameter.cxx

index 4838bbba2bf3b05c4a5f7bc09d265eff32d0ddf9..d715f1b04b2d75dc7b1a9433b62eb3288b5a1c6e 100644 (file)
@@ -606,7 +606,7 @@ int MEDFileParameterMultiTS::getPosOfTimeStep(int iteration, int order) const
       const MEDFileParameter1TS *elt(*it);
       if(elt)
         {
-          if(elt->getIteration()==iteration && elt->getOrder())
+          if(elt->getIteration()==iteration && elt->getOrder()==order)
             return ret;
           else
             oss << "(" << elt->getIteration() << "," << elt->getOrder() << "), ";