Salome HOME
Extra deps update
[tools/medcoupling.git] / src / ParaMEDLoader / ParaMEDLoader.cxx
index da973787c55eec48dca2b49757d474a04ba6ce8b..997213baf408c454c725816ceac1e809bb37dfec 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2016  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
 #include "MEDCouplingUMesh.hxx"
 
 #include <fstream>
+#include <sstream>
 
-using namespace ParaMEDMEM;
+using namespace MEDCoupling;
 
 ParaMEDLoader::ParaMEDLoader()
 {
 }
 
-void ParaMEDLoader::WriteParaMesh(const char *fileName, ParaMEDMEM::ParaMESH *mesh)
+void ParaMEDLoader::WriteParaMesh(const char *fileName, MEDCoupling::ParaMESH *mesh)
 {
   if(!mesh->getBlockTopology()->getProcGroup()->containsMyRank())
     return ;
@@ -46,8 +47,8 @@ void ParaMEDLoader::WriteParaMesh(const char *fileName, ParaMEDMEM::ParaMESH *me
       fileNames[i]=sstr.str();
     }
   if(myRank==0)
-    WriteMasterFile(fileName,fileNames,mesh->getCellMesh()->getName());
-  MEDLoader::WriteUMesh(fileNames[myRank].c_str(),dynamic_cast<MEDCouplingUMesh *>(mesh->getCellMesh()),true);
+    WriteMasterFile(fileName,fileNames,mesh->getCellMesh()->getName().c_str());
+  WriteUMesh(fileNames[myRank].c_str(),dynamic_cast<MEDCouplingUMesh *>(mesh->getCellMesh()),true);
 }
 
 /*!