]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorvbd <vbd>
Fri, 9 Nov 2007 14:58:20 +0000 (14:58 +0000)
committervbd <vbd>
Fri, 9 Nov 2007 14:58:20 +0000 (14:58 +0000)
src/ParaMEDMEM/Test/ParaMEDMEMTest.hxx
src/ParaMEDMEM/Test/ParaMEDMEMTest_IntersectionDEC.cxx
src/ParaMEDMEM/Test/ParaMEDMEMTest_MPIProcessorGroup.cxx

index c810f9a7618d71691ddf0a721fb16a9ffdee935c..77664c7e5f3e5dace33f22ccd2247950365ffb25 100644 (file)
@@ -29,9 +29,6 @@
 #include "mpi.h"
 
 
-static int argc;
-static char** argv; 
-
 class ParaMEDMEMTest : public CppUnit::TestFixture
 {
   CPPUNIT_TEST_SUITE( ParaMEDMEMTest );
index 0d2dcffa51861207c97df55ae4cefe5fad6b965f..6c5ee73d044de24889c1ad56d4864940a24bde5a 100644 (file)
@@ -63,8 +63,8 @@ void ParaMEDMEMTest::testIntersectionDEC_2D()
   MPI_Comm_size(MPI_COMM_WORLD,&size);
   MPI_Comm_rank(MPI_COMM_WORLD,&rank);
  
- //test is meant to run on five processors
-  if (size !=5) return 0;
+ //the test is meant to run on five processors
+  if (size !=5) return ;
    
   int nproc_source = 3;
   set<int> self_procs;
@@ -85,8 +85,6 @@ void ParaMEDMEMTest::testIntersectionDEC_2D()
   
   ParaMEDMEM::ParaMESH* source_mesh=0;
   ParaMEDMEM::ParaMESH* target_mesh=0;
-
   
   //loading the geometry for the source group
 
index ef1ba7b257e06cbe01a1618941b2fd69b2104b35..62c6c95681c04d16e73ed21c349e09393f7cd82a 100644 (file)
@@ -140,6 +140,9 @@ void ParaMEDMEMTest::testMPIProcessorGroup_rank()
   if (group2.containsMyRank())
     {
       int trank=group_fuse->translateRank(&group2,0);
-                       CPPUNIT_ASSERT_EQUAL(trank,1);
+      if (size==1)
+        CPPUNIT_ASSERT_EQUAL(trank,0);
+      else  
+                         CPPUNIT_ASSERT_EQUAL(trank,1);
     }
 }