From: vbd Date: Fri, 21 Sep 2007 07:43:04 +0000 (+0000) Subject: adding 3D interp X-Git-Tag: trio_trio_coupling~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=21a18312788e3043b39eb95b40ceefddcd17ea08;p=tools%2Fmedcoupling.git adding 3D interp --- diff --git a/src/ParaMEDMEM/InterpolationMatrix.cxx b/src/ParaMEDMEM/InterpolationMatrix.cxx index 625fa7c9c..4bab4da8c 100644 --- a/src/ParaMEDMEM/InterpolationMatrix.cxx +++ b/src/ParaMEDMEM/InterpolationMatrix.cxx @@ -4,6 +4,7 @@ #include "InterpolationMatrix.hxx" #include "Interpolation2D.hxx" #include "Interpolation3DSurf.hxx" +#include "Interpolation3D.hxx" /*! \class InterpolationMatrix @@ -76,7 +77,9 @@ void InterpolationMatrix::addContribution(MEDMEM::MESH& distant_support, int ipr if (distant_support.getMeshDimension()==2 && distant_support.getSpaceDimension()==3) interpolator=new MEDMEM::Interpolation3DSurf(); else if (distant_support.getMeshDimension()==2 && distant_support.getSpaceDimension()==2) - interpolator=new MEDMEM::Interpolation2D(); + interpolator=new MEDMEM::Interpolation2D(); + else if (distant_support.getMeshDimension()==3 && distant_support.getSpaceDimension()==3) + interpolator=new MEDMEM::Interpolation3D(); else throw MEDMEM::MEDEXCEPTION("no interpolator exists for these mesh and space dimensions ");