Salome HOME
Compilation SALOME on Windows
[modules/med.git] / src / ParaMEDLoader / ParaMEDLoader.cxx
index f751551f591647117932fef5c9c8765def82f1e6..50519734fe737703b84dadc06ee6581c02d43994 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2013  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
@@ -16,6 +16,7 @@
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+// Author : Anthony Geay (CEA/DEN)
 
 #include "ParaMEDLoader.hxx"
 #include "MEDLoader.hxx"
@@ -45,7 +46,7 @@ void ParaMEDLoader::WriteParaMesh(const char *fileName, ParaMEDMEM::ParaMESH *me
       fileNames[i]=sstr.str();
     }
   if(myRank==0)
-    WriteMasterFile(fileName,fileNames,mesh->getCellMesh()->getName());
+    WriteMasterFile(fileName,fileNames,mesh->getCellMesh()->getName().c_str());
   MEDLoader::WriteUMesh(fileNames[myRank].c_str(),dynamic_cast<MEDCouplingUMesh *>(mesh->getCellMesh()),true);
 }