From 3103170d4a39559fe08ea6051601ce8f14ba2c5c Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 12 Mar 2013 13:59:05 +0000 Subject: [PATCH] Gauss<->Gauss interpolation --- src/MEDCoupling/MEDCouplingRemapper.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MEDCoupling/MEDCouplingRemapper.cxx b/src/MEDCoupling/MEDCouplingRemapper.cxx index 61f004f07..171e43d09 100644 --- a/src/MEDCoupling/MEDCouplingRemapper.cxx +++ b/src/MEDCoupling/MEDCouplingRemapper.cxx @@ -715,11 +715,11 @@ int MEDCouplingRemapper::prepareNotInterpKernelOnlyGaussGauss() throw(INTERP_KER const double *trgLocPtr=trgLoc->begin(); int trgSpaceDim=trgLoc->getNumberOfComponents(); MEDCouplingAutoRefCountObjectPtr srcOffsetArr=_src_ft->getDiscretization()->getOffsetArr(_src_ft->getMesh()); - if(trgSpaceDim!=srcOffsetArr->getNumberOfComponents()) + if(trgSpaceDim!=_src_ft->getMesh()->getSpaceDimension()) { std::ostringstream oss; oss << "MEDCouplingRemapper::prepareNotInterpKernelOnlyGaussGauss : space dimensions mismatch between source and target !"; oss << " Target discretization localization has dimension " << trgSpaceDim << ", whereas the space dimension of source is equal to "; - oss << srcOffsetArr->getNumberOfComponents() << " !"; + oss << _src_ft->getMesh()->getSpaceDimension() << " !"; throw INTERP_KERNEL::Exception(oss.str().c_str()); } const int *srcOffsetArrPtr=srcOffsetArr->begin(); @@ -848,8 +848,8 @@ std::string MEDCouplingRemapper::checkAndGiveInterpolationMethodStr(std::string& throw INTERP_KERNEL::Exception("MEDCouplingRemapper::checkAndGiveInterpolationMethodStr : it appears that no all field templates have been set !"); if(!s->getMesh() || !t->getMesh()) throw INTERP_KERNEL::Exception("MEDCouplingRemapper::checkAndGiveInterpolationMethodStr : it appears that no all field templates have their mesh set !"); - srcMeth=_src_ft->getDiscretization()->getStringRepr(); - trgMeth=_target_ft->getDiscretization()->getStringRepr(); + srcMeth=_src_ft->getDiscretization()->getRepr(); + trgMeth=_target_ft->getDiscretization()->getRepr(); std::string method(srcMeth); method+=trgMeth; return method; } -- 2.39.2