]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Bug fix MEDCouplingRemapper::reverseTransfer()
authorabn <adrien.bruneton@cea.fr>
Wed, 8 Jun 2022 12:03:05 +0000 (14:03 +0200)
committerabn <adrien.bruneton@cea.fr>
Wed, 8 Jun 2022 12:04:44 +0000 (14:04 +0200)
src/MEDCoupling/MEDCouplingRemapper.cxx

index b95912309f32e1dba78310ff768f2e3e1f9c8c0d..8f620ffe644cc7b2fc441c37e9c09ec2d66d6b19 100755 (executable)
@@ -249,7 +249,7 @@ void MEDCouplingRemapper::reverseTransfer(MEDCouplingFieldDouble *srcField, cons
   if(array)
     {
       srcField->checkConsistencyLight();
-      if(ToIdType(trgNbOfCompo)!=srcField->getNumberOfTuplesExpected())
+      if(trgNbOfCompo != srcField->getNumberOfComponents())
         throw INTERP_KERNEL::Exception("Number of components mismatch !");
     }
   else