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 {
CompoundSurface,
Volume,
DiscreteVolume,
CompoundVolume
CompoundVolume,
PartitionVertex,
PartitionEdge,
PartitionSurface
};
// return a string describing the entity type
......@@ -140,7 +143,10 @@ class GEntity {
"Compound surface",
"Volume",
"Discrete volume",
"Compound Volume"
"Compound Volume",
"Partition Vertex",
"Partition Edge",
"Partition Surface"
};
unsigned int type = (unsigned int)geomType();
if(type >= sizeof(name) / sizeof(name[0]))
......
......@@ -128,6 +128,9 @@ int PartitionMesh(GModel *const model, meshPartitionOptions &options)
}
model->recomputeMeshPartitions();
if (options.createPartitionBoundaries)CreatePartitionBoundaries (model);
Msg::Info("Partitioning complete");
Msg::StatusBar(1, false, "Mesh");
return 0;
......
......@@ -14,6 +14,8 @@ struct meshPartitionOptions
// 2 - METIS
int num_partitions;
bool createPartitionBoundaries;
//--Chaco
int global_method; // 1 - Multilevel-KL
......@@ -97,6 +99,7 @@ struct meshPartitionOptions
algorithm = 1;
edge_matching = 3;
refine_algorithm = 3;
createPartitionBoundaries = false;//true;
}
};
......
......@@ -111,6 +111,7 @@ public :
virtual void zeroRightHandSide() {}
virtual int systemSolve() { return 0; }
void setPrec(double p){}
virtual void clear(){}
void setNoisy(int n){}
void setGmres(int n){}
};
......
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