Skip to content
Snippets Groups Projects
Commit a366afac authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix minimal compile

parent cd3de8c1
No related branches found
No related tags found
No related merge requests found
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
// Partition.cpp - Copyright (C) 2008 S. Guzik, C. Geuzaine, J.-F. Remacle // Partition.cpp - Copyright (C) 2008 S. Guzik, C. Geuzaine, J.-F. Remacle
#include "GmshConfig.h" #include "GmshConfig.h"
#include "meshPartition.h"
#include "meshPartitionOptions.h"
#if defined(HAVE_CHACO) || defined(HAVE_METIS) #if defined(HAVE_CHACO) || defined(HAVE_METIS)
#include "GModel.h" #include "GModel.h"
#include "meshPartition.h"
#include "meshPartitionObjects.h" #include "meshPartitionObjects.h"
#include "meshPartitionOptions.h"
#include "MTriangle.h" #include "MTriangle.h"
#include "MQuadrangle.h" #include "MQuadrangle.h"
#include "MTetrahedron.h" #include "MTetrahedron.h"
...@@ -1363,4 +1363,13 @@ template void MakeGraphDIM<3, GModel::riter, GModel::fiter> ...@@ -1363,4 +1363,13 @@ template void MakeGraphDIM<3, GModel::riter, GModel::fiter>
Graph &graph, BoElemGrVec *const boElemGrVec); Graph &graph, BoElemGrVec *const boElemGrVec);
#else
int PartitionMesh(GModel *const model, meshPartitionOptions &options)
{
Msg::Error("Gmsh must be compiled with METIS or Chaco support to partition meshes");
return 0;
}
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment