Salome HOME
[EDF21269] : Reproduce PTScotch graph split between independant runs
[tools/medcoupling.git] / src / ParaMEDLoader / ParaMEDLoader.cxx
index 4c72d0be98297773258b469bbaeeeed0d03f9357..dbd238af10989506f8f22812baa6da6314fdd68b 100644 (file)
@@ -56,11 +56,11 @@ void ParaMEDLoader::WriteParaMesh(const char *fileName, MEDCoupling::ParaMESH *m
  */
 void ParaMEDLoader::WriteMasterFile(const char *fileName, const std::vector<std::string>& fileNames, const char *meshName)
 {
-  int nbOfDom=fileNames.size();
+  std::size_t nbOfDom=fileNames.size();
   std::ofstream fs(fileName);
   fs << "#MED Fichier V 2.3" << " " << std::endl;
   fs << "#"<<" " << std::endl;
   fs << nbOfDom <<" " << std::endl;
-  for(int i=0;i<nbOfDom;i++)
+  for(std::size_t i=0;i<nbOfDom;i++)
     fs << meshName << " " << i+1 << " " << meshName << "_" << i+1 << " localhost " << fileNames[i] << " " << std::endl;
 }