From bfc13f652ecf57d6747d98f47966a7d22f48619b Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Tue, 20 Sep 2016 18:18:10 +0200
Subject: [PATCH] [MeL] mesh can be axially symmetric

---
 MeshLib/Mesh.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/MeshLib/Mesh.h b/MeshLib/Mesh.h
index 4b7a72bf0ad..0a4e2159010 100644
--- a/MeshLib/Mesh.h
+++ b/MeshLib/Mesh.h
@@ -125,6 +125,16 @@ public:
     MeshLib::Properties & getProperties() { return _properties; }
     MeshLib::Properties const& getProperties() const { return _properties; }
 
+    bool isAxiallySymmetric() const { return _is_axially_symmetric; }
+    void setAxiallySymmetric(bool is_axial_symmetric) {
+        _is_axially_symmetric = is_axial_symmetric;
+        if (_is_axially_symmetric && getDimension() != 2) {
+            OGS_FATAL(
+                "Axial symmetry is implemented only for two-dimensional "
+                "meshes.");
+        }
+    }
+
 protected:
     /// Set the minimum and maximum length over the edges of the mesh.
     void calcEdgeLengthRange();
@@ -163,6 +173,8 @@ protected:
     std::vector<Element*> _elements;
     std::size_t _n_base_nodes;
     Properties _properties;
+
+    bool _is_axially_symmetric = false;
 }; /* class */
 
 
-- 
GitLab