#include "MEDPARTITIONER_ConnectZone.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
+
#include <map>
using namespace ParaMEDMEM;
#define __MEDPARTITIONER_CONNECTZONE_HXX__
#include "MEDPARTITIONER.hxx"
-#include "MEDCouplingUMesh.hxx"
-#include "MEDCouplingSkyLineArray.hxx"
+
+namespace ParaMEDMEM
+{
+ class MEDCouplingUMesh;
+ class MEDCouplingSkyLineArray;
+}
#include <map>
#include <vector>
#include "MEDPARTITIONER_Graph.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
+
#include <set>
MEDPARTITIONER::Graph::Graph(ParaMEDMEM::MEDCouplingSkyLineArray *array, int *edgeweight):_graph(array),_partition(0),_edge_weight(edgeweight),_cell_weight(0)
}
return domains.size();
}
+
+const int *MEDPARTITIONER::Graph::getPart() const
+{
+ return _partition->getValue();
+}
+
+int MEDPARTITIONER::Graph::nbVertices() const
+{
+ return _graph->getNumberOf();
+}
#define __MEDPARTITIONER_GRAPH_HXX__
#include "MEDPARTITIONER.hxx"
-#include "MEDCouplingSkyLineArray.hxx"
#include <string>
virtual void partGraph(int ndomain, const std::string& options_string="", ParaDomainSelector *sel=0) = 0;
//returns the partitioning
- const int *getPart() const { return _partition->getValue(); }
+ const int *getPart() const;
//returns the number of graph vertices (which can correspond to the cells in the mesh!)
- int nbVertices() const { return _graph->getNumberOf(); }
+ int nbVertices() const;
// returns nb of domains in _partition
int nbDomains() const;
#ifndef __MEDPARTITIONER_JOINTFINDER_HXX__
#define __MEDPARTITIONER_JOINTFINDER_HXX__
+#include "MEDPARTITIONER.hxx"
+
#include <map>
#include <vector>
class MeshCollection;
class ParaDomainSelector;
- class JointFinder
+ class MEDPARTITIONER_EXPORT JointFinder
{
public:
JointFinder(const MeshCollection& mc);
#include "MEDPARTITIONER_MetisGraph.hxx"
#include "MEDPARTITIONER_ScotchGraph.hxx"
#include "MEDPARTITIONER_MeshCollectionDriver.hxx"
+
#include "MEDCouplingUMesh.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
#include <iostream>
#include <vector>
#ifndef __MEDPARTITIONER_MEDPARTITIONER_HXX__
#define __MEDPARTITIONER_MEDPARTITIONER_HXX__
+#include "MEDPARTITIONER.hxx"
#include "MEDPARTITIONER_Graph.hxx"
#include <map>
namespace ParaMEDMEM
{
- class DataArrayInt;
class MEDFileData;
- class MEDCouplingSkyLineArray;
}
namespace MEDPARTITIONER
{
class Topology;
class MeshCollection;
- class ParaDomainSelector;
- class Graph;
-
- class MEDPartitioner
+
+ class MEDPARTITIONER_EXPORT MEDPartitioner
{
public:
MEDPartitioner(const std::string& filename, int ndomains=1, const std::string& library="metis",bool creates_boundary_faces=false, bool create_joints=false, bool mesure_memory=false);
#include "MEDCouplingFieldDouble.hxx"
#include "MEDCouplingMemArray.hxx"
#include "MEDCouplingNormalizedUnstructuredMesh.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
#include "MEDCouplingUMesh.hxx"
#include "MEDLoader.hxx"
#include "MEDLoaderBase.hxx"
#include "MEDPARTITIONER_Graph.hxx"
#include "MEDPARTITIONER_Utils.hxx"
-#include "MEDCouplingUMesh.hxx"
-
#include <map>
#include <vector>
#include <string>
#include "MEDCouplingFieldDouble.hxx"
#include "MEDCouplingRefCountObject.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
#include "MEDCouplingUMesh.hxx"
+#include "MEDFileData.hxx"
#include "MEDFileField.hxx"
#include "MEDFileJoint.hxx"
#include "MEDFileMesh.hxx"
#define __MEDPARTITIONER_MESHCOLLECTIONDRIVER_HXX__
#include "MEDPARTITIONER.hxx"
-#include "MEDFileData.hxx"
+
#include <vector>
#include <string>
namespace ParaMEDMEM
{
+ class DataArrayDouble;
+ class MEDCouplingFieldDouble;
class MEDFileData;
+ class MEDFileMesh;
+ class MEDFileUMesh;
}
namespace MEDPARTITIONER
#ifndef __MEDPARTITIONER_MESHCOLLECTIONMEDASCIIDRIVER_HXX__
#define __MEDPARTITIONER_MESHCOLLECTIONMEDASCIIDRIVER_HXX__
+#include "MEDPARTITIONER.hxx"
#include "MEDPARTITIONER_MeshCollectionDriver.hxx"
namespace MEDPARTITIONER
{
class MeshCollection;
- class MeshCollectionMedAsciiDriver : public MeshCollectionDriver
+ class MEDPARTITIONER_EXPORT MeshCollectionMedAsciiDriver : public MeshCollectionDriver
{
public:
MeshCollectionMedAsciiDriver(MeshCollection*);
#ifndef __MEDPARTITIONER_MESHCOLLECTIONMEDXMLDRIVER_HXX__
#define __MEDPARTITIONER_MESHCOLLECTIONMEDXMLDRIVER_HXX__
+#include "MEDPARTITIONER.hxx"
#include "MEDPARTITIONER_MeshCollectionDriver.hxx"
namespace MEDPARTITIONER
{
class MeshCollection;
- class MeshCollectionMedXmlDriver : public MeshCollectionDriver
+ class MEDPARTITIONER_EXPORT MeshCollectionMedXmlDriver : public MeshCollectionDriver
{
public:
MeshCollectionMedXmlDriver(MeshCollection*);
#include "MEDPARTITIONER_ParaDomainSelector.hxx"
#include "MEDPARTITIONER_Utils.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
#include "InterpKernelException.hxx"
#include <iostream>
#ifndef __MEDPARTITIONER_METISGRAPH_HXX__
#define __MEDPARTITIONER_METISGRAPH_HXX__
+#include "MEDPARTITIONER.hxx"
#include "MEDPARTITIONER_Graph.hxx"
#include <string>
#include "MEDPARTITIONER_ParaDomainSelector.hxx"
#include "MEDPARTITIONER_Utils.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
#include "InterpKernelException.hxx"
#include <iostream>
{
}
-ParMETISGraph::ParMETISGraph(MEDCouplingSkyLineArray* graph, int* edgeweight)
+ParMETISGraph::ParMETISGraph(ParaMEDMEM::MEDCouplingSkyLineArray* graph, int* edgeweight)
:Graph(graph,edgeweight)
{
}
//the fifth argument true specifies that only the pointers are passed
//to the object
- _partition = new MEDCouplingSkyLineArray(index,value);
+ _partition = new ParaMEDMEM::MEDCouplingSkyLineArray(index,value);
#endif
}
#ifndef __MEDPARTITIONER_ParMETISGraph_HXX__
#define __MEDPARTITIONER_ParMETISGraph_HXX__
+#include "MEDPARTITIONER.hxx"
#include "MEDPARTITIONER_Graph.hxx"
#include <string>
{
public:
ParMETISGraph();
- ParMETISGraph(MEDCouplingSkyLineArray*, int *edgeweight=0);
+ ParMETISGraph(ParaMEDMEM::MEDCouplingSkyLineArray*, int *edgeweight=0);
virtual ~ParMETISGraph();
void partGraph(int ndomain, const std::string& options_string="", ParaDomainSelector *sel=0);
};
#include "MEDPARTITIONER_Utils.hxx"
#include "MEDCouplingUMesh.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
#include <iostream>
#include <numeric>
#include "MEDPARTITIONER_MeshCollection.hxx"
#include "MEDPARTITIONER_Topology.hxx"
#include "MEDPARTITIONER_Graph.hxx"
+#include "MEDPARTITIONER_ParaDomainSelector.hxx"
#include "MEDPARTITIONER_ParallelTopology.hxx"
#include "MEDPARTITIONER_ConnectZone.hxx"
#include "MEDPARTITIONER_Utils.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
#include "MEDCouplingUMesh.hxx"
#include "InterpKernelHashMap.hxx"
#include "MEDPARTITIONER.hxx"
#include "MEDPARTITIONER_Topology.hxx"
-#include "MEDPARTITIONER_ParaDomainSelector.hxx"
-
#include "InterpKernelHashMap.hxx"
{
class Graph;
class MeshCollection;
- class MEDPARTITIONER_FaceModel;
+ class ParaDomainSelector;
class MEDPARTITIONER_EXPORT ParallelTopology : public Topology
{
#include "MEDPARTITIONER_ScotchGraph.hxx"
#include "MEDPARTITIONER_Utils.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
+
#include <cstdio>
#ifdef MED_ENABLE_SCOTCH
#define __MEDPARTITIONER_SCOTCHGRAPH_HXX__
#include "MEDPARTITIONER.hxx"
+#include "MEDPARTITIONER_Graph.hxx"
#include <string>
#include "MEDPARTITIONER_Graph.hxx"
#include "MEDPARTITIONER_UserGraph.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
+
#include <iostream>
#include <vector>
namespace MEDPARTITIONER
{
- class MEDCouplingSkyLineArray;
- class ParaDomainSelector;
class MEDPARTITIONER_EXPORT UserGraph : public Graph
{
public: