Skip to content
Snippets Groups Projects
Commit 35909dda authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

*** empty log message ***

parent 45e55b2b
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,10 @@ class GEntity { ...@@ -99,7 +99,10 @@ class GEntity {
CompoundSurface, CompoundSurface,
Volume, Volume,
DiscreteVolume, DiscreteVolume,
CompoundVolume CompoundVolume,
PartitionVertex,
PartitionEdge,
PartitionSurface
}; };
// return a string describing the entity type // return a string describing the entity type
...@@ -140,7 +143,10 @@ class GEntity { ...@@ -140,7 +143,10 @@ class GEntity {
"Compound surface", "Compound surface",
"Volume", "Volume",
"Discrete volume", "Discrete volume",
"Compound Volume" "Compound Volume",
"Partition Vertex",
"Partition Edge",
"Partition Surface"
}; };
unsigned int type = (unsigned int)geomType(); unsigned int type = (unsigned int)geomType();
if(type >= sizeof(name) / sizeof(name[0])) if(type >= sizeof(name) / sizeof(name[0]))
......
...@@ -128,6 +128,9 @@ int PartitionMesh(GModel *const model, meshPartitionOptions &options) ...@@ -128,6 +128,9 @@ int PartitionMesh(GModel *const model, meshPartitionOptions &options)
} }
model->recomputeMeshPartitions(); model->recomputeMeshPartitions();
if (options.createPartitionBoundaries)CreatePartitionBoundaries (model);
Msg::Info("Partitioning complete"); Msg::Info("Partitioning complete");
Msg::StatusBar(1, false, "Mesh"); Msg::StatusBar(1, false, "Mesh");
return 0; return 0;
......
...@@ -14,6 +14,8 @@ struct meshPartitionOptions ...@@ -14,6 +14,8 @@ struct meshPartitionOptions
// 2 - METIS // 2 - METIS
int num_partitions; int num_partitions;
bool createPartitionBoundaries;
//--Chaco //--Chaco
int global_method; // 1 - Multilevel-KL int global_method; // 1 - Multilevel-KL
...@@ -97,6 +99,7 @@ struct meshPartitionOptions ...@@ -97,6 +99,7 @@ struct meshPartitionOptions
algorithm = 1; algorithm = 1;
edge_matching = 3; edge_matching = 3;
refine_algorithm = 3; refine_algorithm = 3;
createPartitionBoundaries = false;//true;
} }
}; };
......
...@@ -111,6 +111,7 @@ public : ...@@ -111,6 +111,7 @@ public :
virtual void zeroRightHandSide() {} virtual void zeroRightHandSide() {}
virtual int systemSolve() { return 0; } virtual int systemSolve() { return 0; }
void setPrec(double p){} void setPrec(double p){}
virtual void clear(){}
void setNoisy(int n){} void setNoisy(int n){}
void setGmres(int n){} void setGmres(int n){}
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment