From c97f86da5cccee3e99715e1a9dff307aaf4af264 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Fri, 15 Mar 2019 20:32:51 +0100
Subject: [PATCH] [1d3d] Add to string function for embedded coupling modes

---
 .../multidomain/embedded/couplingmanager1d3d.hh  | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/dumux/multidomain/embedded/couplingmanager1d3d.hh b/dumux/multidomain/embedded/couplingmanager1d3d.hh
index c7f4fcedef..86f0883d19 100644
--- a/dumux/multidomain/embedded/couplingmanager1d3d.hh
+++ b/dumux/multidomain/embedded/couplingmanager1d3d.hh
@@ -52,6 +52,22 @@ namespace Dumux {
 enum class EmbeddedCouplingMode
 { line, average, cylindersources, kernel };
 
+/*!
+ * \ingroup EmbeddedCoupling
+ * \brief Convert the coupling mode to a human readable name
+ */
+std::string toString(EmbeddedCouplingMode mode)
+{
+    switch (mode)
+    {
+        case EmbeddedCouplingMode::line: return "line";
+        case EmbeddedCouplingMode::average: return "average";
+        case EmbeddedCouplingMode::cylindersources: return "cylinder";
+        case EmbeddedCouplingMode::kernel: return "kernel";
+        default: return "unknown";
+    }
+}
+
 //! point source traits for the circle average coupling mode
 template<class MDTraits>
 struct CircleAveragePointSourceTraits
-- 
GitLab