X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParaMEDMEMTest%2FParaMEDMEMTest_MPIProcessorGroup.cxx;h=87a8b432b05a8e2e510eb0b75eafe6128bf73ad1;hb=dcc261ea8b9015285a05b5f7bc2960d883815c9a;hp=64b68cc6b51740155c6938cf30f4b0ba564a201b;hpb=10f37bf6f33a762626d7f1093b2f5450c1688667;p=tools%2Fmedcoupling.git diff --git a/src/ParaMEDMEMTest/ParaMEDMEMTest_MPIProcessorGroup.cxx b/src/ParaMEDMEMTest/ParaMEDMEMTest_MPIProcessorGroup.cxx index 64b68cc6b..87a8b432b 100644 --- a/src/ParaMEDMEMTest/ParaMEDMEMTest_MPIProcessorGroup.cxx +++ b/src/ParaMEDMEMTest/ParaMEDMEMTest_MPIProcessorGroup.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2012 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 // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -34,7 +34,7 @@ using namespace std; -using namespace ParaMEDMEM; +using namespace MEDCoupling; /* * Check methods defined in MPPIProcessorGroup.hxx @@ -58,7 +58,7 @@ using namespace ParaMEDMEM; void ParaMEDMEMTest::testMPIProcessorGroup_constructor() { CommInterface comm_interface; - MPIProcessorGroup* group= new MPIProcessorGroup(comm_interface); + MPIProcessorGroup* group = new MPIProcessorGroup(comm_interface);; int size; MPI_Comm_size(MPI_COMM_WORLD, &size); CPPUNIT_ASSERT_EQUAL(size,group->size()); @@ -67,9 +67,9 @@ void ParaMEDMEMTest::testMPIProcessorGroup_constructor() MPI_Comm_size(*communicator, &size2); CPPUNIT_ASSERT_EQUAL(size,size2); delete group; - + set procs; - + procs.insert(0); procs.insert(1); if (size==1) @@ -80,8 +80,7 @@ void ParaMEDMEMTest::testMPIProcessorGroup_constructor() CPPUNIT_ASSERT_EQUAL (group->size(),2); delete group; } - - + //throws because plastsize(),size-1); delete group; } - + } void ParaMEDMEMTest::testMPIProcessorGroup_boolean()