]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorcvw <cvw>
Fri, 16 Mar 2012 13:09:43 +0000 (13:09 +0000)
committercvw <cvw>
Fri, 16 Mar 2012 13:09:43 +0000 (13:09 +0000)
src/MEDPartitioner/Test/MEDPARTITIONERTest.cxx
src/MEDPartitioner/Test/MEDPARTITIONERTest.hxx
src/MEDPartitioner/Test/MEDPARTITIONERTestPara.cxx

index 7c151b224c80f11dde766675a38ad00a9d4a969b..2131ff4c04ef87b2c6e05ed5d9b78041053035c8 100644 (file)
@@ -703,7 +703,7 @@ void MEDPARTITIONERTest::verifyTestMeshWithVecFieldOnNodes()
     }
   m->decrRef();
   
-  MEDFileUMesh * mf = MEDFileUMesh::New(_file_name.c_str(),_meshName.c_str(),-1,-1);
+  MEDFileUMesh * mf = MEDFileUMesh::New(_file_name.c_str(),_mesh_name.c_str(),-1,-1);
   vector<int> lev;
   lev=mf->getNonEmptyLevels();
   if (_verbose)
index 8af687247c9b3be72dace5e4a9d86be7f00aa695..1278b458ebc9297b9411feea7ccabf75ebc96fa8 100644 (file)
@@ -46,7 +46,7 @@ public:
   int _nj;
   int _nk;
   int _ntot;
-  std::string _fileName; //initial test mesh file med CUBE3D
+  std::string _file_name; //initial test mesh file med CUBE3D
   std::string _file_name_with_faces; //initial test mesh file med CUBE3D plus a set of faces
   std::string _file_name2; //initial test mesh file med CARRE3D
   std::string _file_name_huge_xml;
index 2fab79d5494f0ad8e705f8e141874f7a05059755..28c171c42c67b1b6919c1cf7ada95a06f4732836 100644 (file)
@@ -157,7 +157,7 @@ void MEDPARTITIONERTest::verifyMedpartitionerOnSmallSizeForFieldOnCells()
   string fileName,cmd,execName,sourceName,targetName,input;
   execName=getenv("MED_ROOT_DIR");  //.../INSTALL/MED
   execName+="/bin/salome/medpartitioner_para";
-  fileName=_fileName;
+  fileName=_file_name;
   fileName.replace(fileName.find(".med"),4,"_WithVecFieldOnCells.med");
   
   ParaMEDMEM::MEDFileUMesh* initialMesh=ParaMEDMEM::MEDFileUMesh::New(fileName.c_str(),_mesh_name.c_str());
@@ -245,7 +245,7 @@ void MEDPARTITIONERTest::verifyMedpartitionerOnSmallSizeForFieldOnGaussNe()
   string fileName,cmd,execName,sourceName,targetName,input;
   execName=getenv("MED_ROOT_DIR");  //.../INSTALL/MED
   execName+="/bin/salome/medpartitioner_para";
-  fileName=_fileName;
+  fileName=_file_name;
   fileName.replace(fileName.find(".med"),4,"_WithVecFieldOnGaussNe.med");
   
   ParaMEDMEM::MEDFileUMesh* initialMesh=ParaMEDMEM::MEDFileUMesh::New(fileName.c_str(),_mesh_name.c_str());
@@ -369,8 +369,8 @@ void MEDPARTITIONERTest::launchMedpartitionerOnTestMeshes()
   CPPUNIT_ASSERT_EQUAL(0, res);
   
   cmd="mpirun -np 2 "+execName+" --ndomains=2 --split-method=metis";  //on same proc
-  sourceName=_fileName;
-  targetName=_fileName;
+  sourceName=_file_name;
+  targetName=_file_name;
   targetName.replace(targetName.find(".med"),4,"_partitionedTo2_");
   cmd+=" --input-file="+sourceName+" --output-file="+targetName+" --verbose="+IntToStr(_verbose);
   if (_verbose) cout<<endl<<cmd<<endl;
@@ -378,8 +378,8 @@ void MEDPARTITIONERTest::launchMedpartitionerOnTestMeshes()
   CPPUNIT_ASSERT_EQUAL(0, res);
   
   cmd="mpirun -np 3 "+execName+" --ndomains=5 --split-method=metis"; //on less proc
-  sourceName=_fileName;
-  targetName=_fileName;
+  sourceName=_file_name;
+  targetName=_file_name;
   targetName.replace(targetName.find(".med"),4,"_partitionedTo5_");
   cmd+=" --input-file="+sourceName+" --output-file="+targetName+" --verbose="+IntToStr(_verbose);
   if (_verbose) cout<<endl<<cmd<<endl;
@@ -388,7 +388,7 @@ void MEDPARTITIONERTest::launchMedpartitionerOnTestMeshes()
   
   cmd="mpirun -np 1 "+execName+" --ndomains=1 --split-method=metis";  //on 1 proc
   sourceName=targetName+".xml";
-  targetName=_fileName;
+  targetName=_file_name;
   targetName.replace(targetName.find(".med"),4,"_remergedFrom5_");
   cmd+=" --input-file="+sourceName+" --output-file="+targetName+" --verbose="+IntToStr(_verbose);
   if (_verbose) cout<<endl<<cmd<<endl;
@@ -397,7 +397,7 @@ void MEDPARTITIONERTest::launchMedpartitionerOnTestMeshes()
 
   cmd="mpirun -np 8 "+execName+" --ndomains=1 --split-method=metis";  //on more proc
   //sourceName=targetName+".xml";
-  targetName=_fileName;
+  targetName=_file_name;
   targetName.replace(targetName.find(".med"),4,"_remergedFrom5_");
   cmd+=" --input-file="+sourceName+" --output-file="+targetName+" --verbose="+IntToStr(_verbose);
   if (_verbose) cout<<endl<<cmd<<endl;