Salome HOME
Revert "Synchronize adm files"
[tools/medcoupling.git] / src / ParaMEDLoader / ParaMEDLoader.cxx
index 9c8df2aee6f2149975c0f2bea64f2bb1f47821d4..9f00d463aced1238bd2e571239e9ccbb807d6347 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2014  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
@@ -46,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);
 }