]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
API change of DECs constructors.
authorageay <ageay>
Mon, 28 Jun 2010 13:18:11 +0000 (13:18 +0000)
committerageay <ageay>
Mon, 28 Jun 2010 13:18:11 +0000 (13:18 +0000)
src/ParaMEDMEMTest/ParaMEDMEMTest_FabienAPI.cxx

index 92c33f5b3f522514dbe54484f32d20e673c63485..35ee51d168eecee20c64623f951cc43c60d2c8fb 100644 (file)
@@ -40,8 +40,10 @@ void ParaMEDMEMTest::testFabienAPI1()
   //
   if(size!=3)
     return ;
-  int procs_source[1]={0};
-  int procs_target[1]={1};
+  int procs_source_c[1]={0};
+  std::set<int> procs_source(procs_source_c,procs_source_c+1);
+  int procs_target_c[1]={1};
+  std::set<int> procs_target(procs_target_c,procs_target_c+1);
   //
   ParaMEDMEM::MEDCouplingUMesh *mesh=0;
   ParaMEDMEM::ParaMESH *paramesh=0;
@@ -53,7 +55,7 @@ void ParaMEDMEMTest::testFabienAPI1()
   double targetCoords[8]={ 0.,0., 1., 0., 0., 1., 1., 1. };
   CommInterface comm;
   //
-  ParaMEDMEM::InterpKernelDEC *dec=new ParaMEDMEM::InterpKernelDEC(procs_source,procs_source+1,procs_target,procs_target+1);
+  ParaMEDMEM::InterpKernelDEC *dec=new ParaMEDMEM::InterpKernelDEC(procs_source,procs_target);
   if(dec->isInSourceSide())
     {    
       mesh=MEDCouplingUMesh::New();