]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
adding 3D interp
authorvbd <vbd>
Fri, 21 Sep 2007 07:43:04 +0000 (07:43 +0000)
committervbd <vbd>
Fri, 21 Sep 2007 07:43:04 +0000 (07:43 +0000)
src/ParaMEDMEM/InterpolationMatrix.cxx

index 625fa7c9cf534c1b2a9d6b3cf44295f7702b474b..4bab4da8c6ff1699adf562d87ade314903a1df20 100644 (file)
@@ -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 ");