Skip to content
Snippets Groups Projects
Commit c95e59d6 authored by Abelin Kameni's avatar Abelin Kameni
Browse files

fix compile without metis

parent 180aa6f9
No related branches found
No related tags found
No related merge requests found
...@@ -1146,4 +1146,5 @@ template void MakeGraphDIM<3, GModel::riter, GModel::fiter> ...@@ -1146,4 +1146,5 @@ template void MakeGraphDIM<3, GModel::riter, GModel::fiter>
const GModel::fiter beginBE, const GModel::fiter endBE, const GModel::fiter beginBE, const GModel::fiter endBE,
Graph &graph, BoElemGrVec *const boElemGrVec); Graph &graph, BoElemGrVec *const boElemGrVec);
#endif #endif
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "GmshConfig.h" #include "GmshConfig.h"
#include "GmshDefines.h" #include "GmshDefines.h"
#include "meshPartition.h" #include "meshPartition.h"
#include "MElement.h"
static bool zeroGenus (std::vector<MElement *> &elements){ static bool zeroGenus (std::vector<MElement *> &elements){
...@@ -73,8 +73,7 @@ multiscalePartition::multiscalePartition (std::vector<MElement *> &elements, ...@@ -73,8 +73,7 @@ multiscalePartition::multiscalePartition (std::vector<MElement *> &elements,
} }
void multiscalePartition::partition(partitionLevel & level){ void multiscalePartition::partition(partitionLevel & level){
#if defined(HAVE_METIS) || defined(HAVE_CHACO)
PartitionMeshElements(level.elements, options); PartitionMeshElements(level.elements, options);
std::vector<std::vector<MElement*> > regions(options.num_partitions); std::vector<std::vector<MElement*> > regions(options.num_partitions);
...@@ -102,7 +101,7 @@ void multiscalePartition::partition(partitionLevel & level){ ...@@ -102,7 +101,7 @@ void multiscalePartition::partition(partitionLevel & level){
} }
#endif
} }
int multiscalePartition::assembleAllPartitions(){ int multiscalePartition::assembleAllPartitions(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment