Commit 4f12bf80 authored by Christophe Geuzaine's avatar Christophe Geuzaine

improve compatibility of new partitioner with legacy MSH2 format

parent d73b86b4
Pipeline #1206 passed with stage
in 37 minutes 43 seconds
......@@ -71,6 +71,9 @@ class GEdge : public GEntity {
// get the dimension of the edge (1)
virtual int dim() const { return 1; }
// returns the parent entity for partitioned entities
virtual GEdge* getParentEntity() { return 0; }
// set the visibility flag
virtual void setVisibility(char val, bool recursive=false);
......
......@@ -128,6 +128,9 @@ class GFace : public GEntity {
// dimension of the face (2)
virtual int dim() const { return 2; }
// returns the parent entity for partitioned entities
virtual GFace* getParentEntity() { return 0; }
// set visibility flag
virtual void setVisibility(char val, bool recursive=false);
......
This diff is collapsed.
This diff is collapsed.
......@@ -43,6 +43,9 @@ class GRegion : public GEntity {
// get the dimension of the region (3)
virtual int dim() const { return 3; }
// returns the parent entity for partitioned entities
virtual GRegion* getParentEntity() { return 0; }
// set the visibility flag
virtual void setVisibility(char val, bool recursive=false);
......
......@@ -58,6 +58,9 @@ class GVertex : public GEntity
// get the dimension of the vertex (0)
virtual int dim() const { return 0; }
// returns the parent entity for partitioned entities
virtual GVertex* getParentEntity() { return 0; }
// get the geometric type of the vertex
virtual GeomType geomType() const { return Point; }
......
......@@ -23,7 +23,7 @@ public:
virtual ~partitionEdge() {}
virtual GeomType geomType() const { return PartitionCurve; }
virtual void setParentEntity(GEdge* e) { _parentEntity = e; }
virtual GEdge* getParentEntity() const { return _parentEntity; }
virtual GEdge* getParentEntity() { return _parentEntity; }
virtual void setPartitions(std::vector<unsigned int> &partitions)
{
_partitions = partitions;
......
......@@ -21,7 +21,7 @@ public:
virtual ~partitionFace() {}
virtual GeomType geomType() const { return PartitionSurface; }
virtual void setParentEntity(GFace* f) { _parentEntity = f; }
virtual GFace* getParentEntity() const { return _parentEntity; }
virtual GFace* getParentEntity() { return _parentEntity; }
virtual void setPartitions(std::vector<unsigned int> &partitions)
{
_partitions = partitions;
......
......@@ -21,7 +21,7 @@ public:
virtual ~partitionRegion() {}
virtual GeomType geomType() const { return PartitionVolume; }
virtual void setParentEntity(GRegion* r) { _parentEntity = r; }
virtual GRegion* getParentEntity() const { return _parentEntity; }
virtual GRegion* getParentEntity() { return _parentEntity; }
virtual void setPartitions(std::vector<unsigned int> &partitions)
{
_partitions = partitions;
......
......@@ -21,7 +21,7 @@ public:
virtual ~partitionVertex() {}
virtual GeomType geomType() const { return PartitionVertex; }
virtual void setParentEntity(GVertex* v) { _parentEntity = v; }
virtual GVertex* getParentEntity() const { return _parentEntity; }
virtual GVertex* getParentEntity() { return _parentEntity; }
virtual void setPartitions(std::vector<unsigned int> &partitions)
{
_partitions = partitions;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment