From c75d3ee306ce3203b71187b0295acf0c03c8dc06 Mon Sep 17 00:00:00 2001 From: abn Date: Wed, 8 Jun 2022 14:03:05 +0200 Subject: [PATCH] Bug fix MEDCouplingRemapper::reverseTransfer() --- src/MEDCoupling/MEDCouplingRemapper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2