From: abn Date: Wed, 8 Jun 2022 12:03:05 +0000 (+0200) Subject: Bug fix MEDCouplingRemapper::reverseTransfer() X-Git-Tag: V9_9_1b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c75d3ee306ce3203b71187b0295acf0c03c8dc06;p=tools%2Fmedcoupling.git Bug fix MEDCouplingRemapper::reverseTransfer() --- diff --git a/src/MEDCoupling/MEDCouplingRemapper.cxx b/src/MEDCoupling/MEDCouplingRemapper.cxx index b95912309..8f620ffe6 100755 --- a/src/MEDCoupling/MEDCouplingRemapper.cxx +++ b/src/MEDCoupling/MEDCouplingRemapper.cxx @@ -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