-// Copyright (C) 2007-2015 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
#include <vector>
#include <string>
+namespace MEDCoupling
+{
+ class DataArrayDouble;
+ class MEDCouplingFieldDouble;
+ class MEDFileData;
+ class MEDFileMesh;
+ class MEDFileUMesh;
+}
+
namespace MEDPARTITIONER
{
class MeshCollection;
virtual ~MeshCollectionDriver() { }
virtual int read(const char*, ParaDomainSelector* sel=0) = 0;
int readSeq(const char*,const char*);
+ MEDCoupling::MEDFileData *getMEDFileData();
virtual void write(const char*, ParaDomainSelector* sel=0) const = 0;
+ void readMEDFileData(const MEDCoupling::MEDFileData* filedata);
protected:
- void readSubdomain(std::vector<int*>& cellglobal,
- std::vector<int*>& faceglobal,
- std::vector<int*>& nodeglobal, int idomain);
void readSubdomain(int idomain);
+ void readData(MEDCoupling::MEDFileUMesh* mfm, int idomain) const;
+ void readFileData(std::string file,std::string meshname,int idomain) const;
+ MEDCoupling::MEDFileMesh* getMesh(int idomain) const;
+ MEDCoupling::MEDCouplingFieldDouble* getField(std::string key, std::string description, MEDCoupling::DataArrayDouble* data, MEDCoupling::MEDFileMesh* mfm, int idomain) const;
void writeMedFile(int idomain, const std::string& distfilename) const;
protected:
MeshCollection* _collection;