Salome HOME
Deal with pipes
[tools/medcoupling.git] / src / ParaMEDMEMTest / test_MPI_Access_Time_0.cxx
index 9000e57ea187b49b8ad48e45ff55d45bae7ef2b1..4d7dd6d886b69108c34d19a2ae9f83ca6ab1e615 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -38,9 +38,9 @@
 #define ENABLE_FORCED_FAILURES
 
 using namespace std;
-using namespace ParaMEDMEM;
+using namespace MEDCoupling;
 
-void chksts( int sts , int myrank , ParaMEDMEM::MPIAccess * mpi_access ) {
+void chksts( int sts , int myrank , MEDCoupling::MPIAccess * mpi_access ) {
   char msgerr[MPI_MAX_ERROR_STRING] ;
   int lenerr ;
   if ( sts != MPI_SUCCESS ) {
@@ -74,7 +74,7 @@ void MPIAccessTest::test_MPI_Access_Time_0() {
     strstream << "usage :" << endl
               << "mpirun -np <nbprocs> test_MPI_Access_Time_0" <<endl
               << " nbprocs =2" << endl
-              << "test must be runned with 2 procs" << endl ;
+              << "test must be run with 2 procs" << endl ;
     cerr << strstream.str() << endl ;
     //CPPUNIT_FAIL( strstream.str() ) ;
     return;
@@ -88,11 +88,11 @@ void MPIAccessTest::test_MPI_Access_Time_0() {
 
   debugStream << "test_MPI_Access_Time_0 rank" << myrank << endl ;
 
-  ParaMEDMEM::CommInterface interface ;
+  MEDCoupling::CommInterface interface ;
 
-  ParaMEDMEM::MPIProcessorGroup* group = new ParaMEDMEM::MPIProcessorGroup(interface) ;
+  MEDCoupling::MPIProcessorGroup* group = new MEDCoupling::MPIProcessorGroup(interface) ;
 
-  ParaMEDMEM::MPIAccess * mpi_access = new ParaMEDMEM::MPIAccess( group ) ;
+  MEDCoupling::MPIAccess * mpi_access = new MEDCoupling::MPIAccess( group ) ;
 
   if ( myrank >= 2 ) {
     debugStream << "test_MPI_Access_Time_0 rank" << myrank << " --> mpi_access->barrier" << endl ;
@@ -115,10 +115,10 @@ void MPIAccessTest::test_MPI_Access_Time_0() {
   int sts ;
   int sendbuf[maxreq] ;
   int recvbuf[maxreq] ;
-  ParaMEDMEM::TimeMessage aSendTimeMsg[maxreq] ;
+  MEDCoupling::TimeMessage aSendTimeMsg[maxreq] ;
   int lasttime = -1 ;
-  ParaMEDMEM::TimeMessage RecvTimeMessages[maxreq+1] ;
-  ParaMEDMEM::TimeMessage *aRecvTimeMsg = &RecvTimeMessages[1] ;
+  MEDCoupling::TimeMessage RecvTimeMessages[maxreq+1] ;
+  MEDCoupling::TimeMessage *aRecvTimeMsg = &RecvTimeMessages[1] ;
 //  mpi_access->Trace() ;
   int istep = 0 ;
   for ( t = 0 ; t < maxt ; t = t+dt[myrank] ) {