Salome HOME
Align include directives in MEDPartitioner package
authorvsr <vsr@opencascade.com>
Thu, 11 Jun 2015 15:34:42 +0000 (18:34 +0300)
committervsr <vsr@opencascade.com>
Thu, 11 Jun 2015 15:35:53 +0000 (18:35 +0300)
24 files changed:
src/MEDPartitioner/MEDPARTITIONER_ConnectZone.cxx
src/MEDPartitioner/MEDPARTITIONER_ConnectZone.hxx
src/MEDPartitioner/MEDPARTITIONER_Graph.cxx
src/MEDPartitioner/MEDPARTITIONER_Graph.hxx
src/MEDPartitioner/MEDPARTITIONER_JointFinder.hxx
src/MEDPartitioner/MEDPARTITIONER_MEDPartitioner.cxx
src/MEDPartitioner/MEDPARTITIONER_MEDPartitioner.hxx
src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx
src/MEDPartitioner/MEDPARTITIONER_MeshCollection.hxx
src/MEDPartitioner/MEDPARTITIONER_MeshCollectionDriver.cxx
src/MEDPartitioner/MEDPARTITIONER_MeshCollectionDriver.hxx
src/MEDPartitioner/MEDPARTITIONER_MeshCollectionMedAsciiDriver.hxx
src/MEDPartitioner/MEDPARTITIONER_MeshCollectionMedXmlDriver.hxx
src/MEDPartitioner/MEDPARTITIONER_MetisGraph.cxx
src/MEDPartitioner/MEDPARTITIONER_MetisGraph.hxx
src/MEDPartitioner/MEDPARTITIONER_ParMetisGraph.cxx
src/MEDPartitioner/MEDPARTITIONER_ParMetisGraph.hxx
src/MEDPartitioner/MEDPARTITIONER_ParaDomainSelector.cxx
src/MEDPartitioner/MEDPARTITIONER_ParallelTopology.cxx
src/MEDPartitioner/MEDPARTITIONER_ParallelTopology.hxx
src/MEDPartitioner/MEDPARTITIONER_ScotchGraph.cxx
src/MEDPartitioner/MEDPARTITIONER_ScotchGraph.hxx
src/MEDPartitioner/MEDPARTITIONER_UserGraph.cxx
src/MEDPartitioner/MEDPARTITIONER_UserGraph.hxx

index 78fd1a0f49658cd085b8f1455f9f1e5b7a902239..402d6624998a78aedf174ca9e6706998d41e9482 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "MEDPARTITIONER_ConnectZone.hxx"
 
+#include "MEDCouplingSkyLineArray.hxx"
+
 #include <map>
 
 using namespace ParaMEDMEM;
index 8c1626dfdf3e23c52016bc4a45a7655344d0dbb0..9572db1c8f4bff3f90ab46bbefb7f66caaf0611e 100644 (file)
 #define __MEDPARTITIONER_CONNECTZONE_HXX__
 
 #include "MEDPARTITIONER.hxx"
-#include "MEDCouplingUMesh.hxx"
-#include "MEDCouplingSkyLineArray.hxx"
+
+namespace ParaMEDMEM
+{
+  class MEDCouplingUMesh;
+  class MEDCouplingSkyLineArray;
+}
 
 #include <map>
 #include <vector>
index 62a273a6a1738643e3f21db967b74a482117ad4e..1904ae4f5bceae2881cb5fbc488afc2b82d5a7e9 100644 (file)
@@ -19,6 +19,8 @@
 
 #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)
@@ -42,3 +44,13 @@ int MEDPARTITIONER::Graph::nbDomains() const
     }
   return domains.size();
 }
+
+const int *MEDPARTITIONER::Graph::getPart() const
+{
+  return _partition->getValue();
+}
+
+int MEDPARTITIONER::Graph::nbVertices() const
+{
+  return _graph->getNumberOf();
+}
index 33ea6760104f0712299e31779817159758dd1943..12227bdb013491b423e64f38f3bcb8e05a69a56b 100644 (file)
@@ -21,7 +21,6 @@
 #define __MEDPARTITIONER_GRAPH_HXX__
 
 #include "MEDPARTITIONER.hxx"
-#include "MEDCouplingSkyLineArray.hxx"
 
 #include <string>
 
@@ -50,10 +49,10 @@ namespace MEDPARTITIONER
     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;
index 9cd52efba3a32722bfce591b971acf062ebafb3c..4fcc9ace6f78681c22635baa6e9bf007a1fb8001 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef __MEDPARTITIONER_JOINTFINDER_HXX__
 #define __MEDPARTITIONER_JOINTFINDER_HXX__
 
+#include "MEDPARTITIONER.hxx"
+
 #include <map>
 #include <vector>
 
@@ -29,7 +31,7 @@ namespace MEDPARTITIONER
   class MeshCollection;
   class ParaDomainSelector;
   
-  class JointFinder
+  class MEDPARTITIONER_EXPORT JointFinder
   {
   public:
     JointFinder(const MeshCollection& mc);
index 4ecca4e64a2126cfd74fb4306a25e552f124d4c7..57e9ae919df93631c4bd994cc5304ede3235e2a0 100644 (file)
@@ -27,7 +27,9 @@
 #include "MEDPARTITIONER_MetisGraph.hxx"
 #include "MEDPARTITIONER_ScotchGraph.hxx"
 #include "MEDPARTITIONER_MeshCollectionDriver.hxx"
+
 #include "MEDCouplingUMesh.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
 
 #include <iostream>
 #include <vector>
index d7c31ffda700b82d7425836b823a5e9d4b1330a1..fecaf0cc9a07511cce97f96c1be3fa952bd99180 100644 (file)
@@ -20,6 +20,7 @@
 #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);
index ec806a93b700c8135e1c89c15288a416636bbd50..d0ad9d4cbbce204e9d10d8d6f646b9096100eb74 100644 (file)
@@ -38,6 +38,7 @@
 #include "MEDCouplingFieldDouble.hxx"
 #include "MEDCouplingMemArray.hxx"
 #include "MEDCouplingNormalizedUnstructuredMesh.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
 #include "MEDCouplingUMesh.hxx"
 #include "MEDLoader.hxx"
 #include "MEDLoaderBase.hxx"
index a4eec9a4cfe99342ba8315900189d0be97fbbf58..7f7ad1316ea6c0eda61a04ad6bf9b8597fb16469 100644 (file)
@@ -24,8 +24,6 @@
 #include "MEDPARTITIONER_Graph.hxx"
 #include "MEDPARTITIONER_Utils.hxx"
 
-#include "MEDCouplingUMesh.hxx"
-
 #include <map>
 #include <vector>
 #include <string>
index f13015f77052be75a3803a3212a9cf30748b8e70..68f12e7a53a0e656a1a546be1fe5a33f168a1553 100644 (file)
@@ -27,7 +27,9 @@
 
 #include "MEDCouplingFieldDouble.hxx"
 #include "MEDCouplingRefCountObject.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
 #include "MEDCouplingUMesh.hxx"
+#include "MEDFileData.hxx"
 #include "MEDFileField.hxx"
 #include "MEDFileJoint.hxx"
 #include "MEDFileMesh.hxx"
index d179d17acf17ba188ee0ea64a724813e8f9b28aa..c378a34089fa80765f689586bec91360143704fe 100644 (file)
 #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
index 699c0b25401012ade47c4c6cac1eb6663e5b1d23..2a22d9446513ce8d1156f7b1506312df7c8ccda3 100644 (file)
 #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*);
index e800d830d31ee8809ae66dcc601076477a93cf94..5e2049b4d779bc166147b58139b57208ed9ed266 100644 (file)
 #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*);
index d91ceda7ff4a550b4a9ba5754b477afae0ce357e..7e35338156c6ae1979fd6eac89c2eba1295fee75 100644 (file)
@@ -21,6 +21,7 @@
 #include "MEDPARTITIONER_ParaDomainSelector.hxx"
 #include "MEDPARTITIONER_Utils.hxx"
 
+#include "MEDCouplingSkyLineArray.hxx"
 #include "InterpKernelException.hxx"
 
 #include <iostream>
index 46bea277ecb08f632c54b733cbe2ac41791e418d..5954f9e4d900f9387792fb3baf4c92929e6d9e3b 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef __MEDPARTITIONER_METISGRAPH_HXX__
 #define __MEDPARTITIONER_METISGRAPH_HXX__
 
+#include "MEDPARTITIONER.hxx"
 #include "MEDPARTITIONER_Graph.hxx"
 
 #include <string>
index 18ca26082d6bddb3776614f0eb7598c07e670bd0..4c424f09f8855c5569ea16ab038c45ab034b2264 100644 (file)
@@ -21,6 +21,7 @@
 #include "MEDPARTITIONER_ParaDomainSelector.hxx"
 #include "MEDPARTITIONER_Utils.hxx"
 
+#include "MEDCouplingSkyLineArray.hxx"
 #include "InterpKernelException.hxx"
 
 #include <iostream>
@@ -38,7 +39,7 @@ ParMETISGraph::ParMETISGraph():Graph()
 {
 }
 
-ParMETISGraph::ParMETISGraph(MEDCouplingSkyLineArray* graph, int* edgeweight)
+ParMETISGraph::ParMETISGraph(ParaMEDMEM::MEDCouplingSkyLineArray* graph, int* edgeweight)
   :Graph(graph,edgeweight)
 {
 }
@@ -136,7 +137,7 @@ void ParMETISGraph::partGraph(int ndomain,
   //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
 }
 
index 8b71b2833e31935ffddfe739fbb0958ece811b4b..2d61cec26ee2dfd367d3e5c20fc1c5863024ad78 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef __MEDPARTITIONER_ParMETISGraph_HXX__
 #define __MEDPARTITIONER_ParMETISGraph_HXX__
 
+#include "MEDPARTITIONER.hxx"
 #include "MEDPARTITIONER_Graph.hxx"
 
 #include <string>
@@ -30,7 +31,7 @@ namespace MEDPARTITIONER
   {
   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);
   };
index cf65b32e353122e2429796cfc8f547bc12e1582c..7658b72f7d6864803797d8ef094e095ad61468c0 100644 (file)
@@ -22,6 +22,7 @@
 #include "MEDPARTITIONER_Utils.hxx"
 
 #include "MEDCouplingUMesh.hxx"
+#include "MEDCouplingSkyLineArray.hxx"
 
 #include <iostream>
 #include <numeric>
index a8a4ab5bf1f4e000ca5622c9070fa86dfb54d619..b65d3fdd1aa94abd5f208e68e5d6910a5d1311d8 100644 (file)
 #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"
 
index 5de3f4820fad6f10f060dbcbd1bb471faea0f57f..f18723fb2df05490a816b9ed048b5184d9d3d094 100644 (file)
@@ -22,8 +22,6 @@
 
 #include "MEDPARTITIONER.hxx"
 #include "MEDPARTITIONER_Topology.hxx"
-#include "MEDPARTITIONER_ParaDomainSelector.hxx"
-
 
 #include "InterpKernelHashMap.hxx"
 
@@ -34,7 +32,7 @@ namespace MEDPARTITIONER
 {
   class Graph;
   class MeshCollection;
-  class MEDPARTITIONER_FaceModel;
+  class ParaDomainSelector;
 
   class MEDPARTITIONER_EXPORT ParallelTopology : public Topology
   {
index c8b9f5e76819dfa392e32bfe1f7a95068ea46361..1289291e1191f4ea94c983099704f7d5b684b506 100644 (file)
@@ -21,6 +21,8 @@
 #include "MEDPARTITIONER_ScotchGraph.hxx"
 #include "MEDPARTITIONER_Utils.hxx"
 
+#include "MEDCouplingSkyLineArray.hxx"
+
 #include <cstdio>
 
 #ifdef MED_ENABLE_SCOTCH
index ea6510b7d4e7a08126cb60b3852f81c10b040bce..96f5854b0c82333213aa1b48b97a9d24dfd6d9ab 100644 (file)
@@ -21,6 +21,7 @@
 #define __MEDPARTITIONER_SCOTCHGRAPH_HXX__
 
 #include "MEDPARTITIONER.hxx"
+#include "MEDPARTITIONER_Graph.hxx"
 
 #include <string>
 
index a6070f245b8b9eb3b1c116c6744e116b99c360a5..1d0808471ab6e375539c0944be0100338c4fc025 100644 (file)
@@ -20,6 +20,8 @@
 #include "MEDPARTITIONER_Graph.hxx"
 #include "MEDPARTITIONER_UserGraph.hxx"
 
+#include "MEDCouplingSkyLineArray.hxx"
+
 #include <iostream>
 #include <vector>
 
index a6fc144a533652da445e34edbf6ab8433bc44f80..d6c5f6b5b459d78233f1a6baa908f6d69dad82a8 100644 (file)
@@ -27,8 +27,6 @@
 
 namespace MEDPARTITIONER
 {
-  class MEDCouplingSkyLineArray;
-  class ParaDomainSelector;
   class MEDPARTITIONER_EXPORT UserGraph : public Graph
   {
   public: