X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDPartitioner%2FMEDPARTITIONER_MEDPartitioner.cxx;h=6ea40a0e6a931d31e57ba4008dbe8fae12c3b138;hb=14f30db13a9749dd4a47f5c14944c7331e7390d1;hp=bfc7aa03d572d900c3895df369e9dd3e6bbf965e;hpb=5da72d398d0eb1820c3ce6dd90b8579b6b14edf5;p=tools%2Fmedcoupling.git diff --git a/src/MEDPartitioner/MEDPARTITIONER_MEDPartitioner.cxx b/src/MEDPartitioner/MEDPARTITIONER_MEDPartitioner.cxx index bfc7aa03d..6ea40a0e6 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_MEDPartitioner.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_MEDPartitioner.cxx @@ -24,8 +24,12 @@ #include "MEDPARTITIONER_ParallelTopology.hxx" #include "MEDPARTITIONER_Utils.hxx" #include "MEDPARTITIONER_Graph.hxx" -#include "MEDPARTITIONER_MetisGraph.hxx" -#include "MEDPARTITIONER_ScotchGraph.hxx" +#ifdef MED_ENABLE_METIS +# include "MEDPARTITIONER_MetisGraph.hxx" +#endif +#ifdef MED_ENABLE_SCOTCH +# include "MEDPARTITIONER_ScotchGraph.hxx" +#endif #include "MEDPARTITIONER_MeshCollectionDriver.hxx" #include "MEDCouplingUMesh.hxx" @@ -136,7 +140,8 @@ MEDCoupling::MEDFileData* MEDPARTITIONER::MEDPartitioner::getMEDFileData() MEDPARTITIONER::Graph* MEDPARTITIONER::MEDPartitioner::Graph(MEDCoupling::MEDCouplingSkyLineArray* graph, Graph::splitter_type split, int* edgeweight) { MEDPARTITIONER::Graph* cellGraph=0; - MEDCoupling::MEDCouplingSkyLineArray* arr = new MEDCoupling::MEDCouplingSkyLineArray(graph->getIndexArray(), graph->getValueArray()); + // will be destroyed by XXXGraph class: + MEDCoupling::MEDCouplingSkyLineArray* arr = MEDCoupling::MEDCouplingSkyLineArray::New(graph->getIndexArray(), graph->getValuesArray()); switch (split) { case Graph::METIS: