Salome HOME
Adapt for C++17
[tools/medcoupling.git] / src / ParaMEDMEMTest / test_MPI_Access_IProbe.cxx
index 5fd4c2d0cf9a6cbc047f0c07a881812ca335ea00..46c391ee14a507c4c8cde39d51e754614627feb9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2020  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
@@ -43,7 +43,7 @@
 #define ENABLE_FORCED_FAILURES
 
 using namespace std;
-using namespace ParaMEDMEM;
+using namespace MEDCoupling;
 
 void MPIAccessTest::test_MPI_Access_IProbe() {
 
@@ -58,7 +58,7 @@ void MPIAccessTest::test_MPI_Access_IProbe() {
 
   if ( size < 2 ) {
     ostringstream strstream ;
-    strstream << "test_MPI_Access_IProbe must be runned with 2 procs" << endl ;
+    strstream << "test_MPI_Access_IProbe must be run with 2 procs" << endl ;
     cerr << strstream.str() << endl ;
     //CPPUNIT_FAIL( strstream.str() ) ;
     return;
@@ -66,11 +66,11 @@ void MPIAccessTest::test_MPI_Access_IProbe() {
 
   debugStream << "test_MPI_Access_IProbe" << 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( group ) ;
+  MEDCoupling::MPIAccess mpi_access( group ) ;
 
   if ( myrank >= 2 ) {
     mpi_access.barrier() ;
@@ -81,7 +81,7 @@ void MPIAccessTest::test_MPI_Access_IProbe() {
   int target = 1 - myrank ;
   int sendbuf[10] ;
   int RequestId[10] ;
-  int sts ;
+  int sts = 0;
   int i ;
   for ( i = 0 ; i < 10 ; i++ ) {
      if ( myrank == 0 ) {