]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
staffan :
authorvbd <vbd>
Fri, 14 Sep 2007 12:17:51 +0000 (12:17 +0000)
committervbd <vbd>
Fri, 14 Sep 2007 12:17:51 +0000 (12:17 +0000)
* added testUnitTetra.cxx

src/INTERP_KERNEL/testUnitTetra.cxx [new file with mode: 0644]

diff --git a/src/INTERP_KERNEL/testUnitTetra.cxx b/src/INTERP_KERNEL/testUnitTetra.cxx
new file mode 100644 (file)
index 0000000..07b7869
--- /dev/null
@@ -0,0 +1,16 @@
+#include "MEDMEM_Mesh.hxx"
+#include "Interpolation3D.hxx"
+#include "./Test/TestingUtils.hxx"
+
+using namespace MEDMEM;
+
+// simple test to see if a certain mesh is diagonal when intersected with itself
+
+int main()
+{
+       MEDMEM::MESH mesh1(MED_DRIVER,"/home/vb144235/resources/DividedUnitTetraSimpler.med","DividedUnitTetraSimpler");
+       MEDMEM::MESH mesh2(MED_DRIVER,"/home/vb144235/resources/DividedUnitTetraSimpler.med","DividedUnitTetraSimpler");
+       Interpolation3D interpolator;
+       vector<map<int,double> > matrix = interpolator.interpol_maillages(mesh1,mesh2);
+       dumpIntersectionMatrix(matrix);
+}