Salome HOME
Compilation SALOME on Windows
[modules/med.git] / src / MEDPartitioner / MEDPARTITIONER_MeshCollectionDriver.cxx
index d7571bd38c9159796f46d7ff0d78782e2687c71f..9c6001bc0e686c1f4494c1c58ee21c652553b8e1 100644 (file)
@@ -269,7 +269,7 @@ void MeshCollectionDriver::writeMedFile(int idomain, const std::string& distfile
   //     MEDLoader::WriteUMesh(distfilename.c_str(), boundaryMesh, false);
   //     boundaryMesh->decrRef();
   //   }
-  ParaMEDMEM::MEDFileUMesh* mfm=ParaMEDMEM::MEDFileUMesh::New(distfilename.c_str(), _collection->getMesh(idomain)->getName());
+  ParaMEDMEM::MEDFileUMesh* mfm=ParaMEDMEM::MEDFileUMesh::New(distfilename.c_str(), _collection->getMesh(idomain)->getName().c_str());
 
   mfm->setFamilyInfo(_collection->getFamilyInfo());
   mfm->setGroupInfo(_collection->getGroupInfo());