]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Fix issue when openmpi without parmetis
authorfps <fps@opencascade.com>
Tue, 3 Apr 2012 13:00:40 +0000 (13:00 +0000)
committerfps <fps@opencascade.com>
Tue, 3 Apr 2012 13:00:40 +0000 (13:00 +0000)
src/MEDPartitioner/Makefile.am
src/MEDPartitioner/Test/MEDPARTITIONERTest.hxx

index 21801f83aa47e9f240ff5c1337d5703c74033fd5..c8e7e5ae0e75b528c8ca6ff14da07b4955ad0782 100644 (file)
@@ -67,11 +67,15 @@ MEDPARTITIONER_ParaDomainSelector.cxx \
 MEDPARTITIONER_ConnectZone.cxx \
 MEDPARTITIONER_SkyLineArray.cxx
 
-if MED_ENABLE_PARMETIS
+if MPI_IS_OK
     dist_libmedpartitioner_la_SOURCES+= \
-    MEDPARTITIONER_ParMetisGraph.cxx \
     MEDPARTITIONER_UtilsPara.cxx \
     MEDPARTITIONER_JointFinder.cxx
+endif
+
+if MED_ENABLE_PARMETIS
+    dist_libmedpartitioner_la_SOURCES+= \
+    MEDPARTITIONER_ParMetisGraph.cxx
 else
 if MED_ENABLE_METIS
     dist_libmedpartitioner_la_SOURCES += MEDPARTITIONER_MetisGraph.cxx
index 58a84c3149421814b7b36415ea67a1615eac7a3a..0a182195c71f87f79912ac00bde7f85bf2b5551b 100644 (file)
@@ -47,10 +47,12 @@ class MEDPARTITIONERTest : public CppUnit::TestFixture
 #endif
   
 #if defined(HAVE_MPI2)
+#if defined(MED_ENABLE_PARMETIS)
   //test with mpi on system
   CPPUNIT_TEST( testMpirunSmallSize );
   CPPUNIT_TEST( testMpirunMedianSize );
   CPPUNIT_TEST( testMpirunHugeSize );
+#endif
 #endif
 
   //CPPUNIT_TEST( deleteTestMeshes );