From d0b842a5379b23e8ffb6d776c1bb1f96e004b691 Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Thu, 7 Jul 2016 12:22:53 +0200
Subject: [PATCH] [PL] "global" context to evaluate a secondary variable using
 named functions

---
 ProcessLib/SecondaryVariableContext.h | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 ProcessLib/SecondaryVariableContext.h

diff --git a/ProcessLib/SecondaryVariableContext.h b/ProcessLib/SecondaryVariableContext.h
new file mode 100644
index 00000000000..379b916cf40
--- /dev/null
+++ b/ProcessLib/SecondaryVariableContext.h
@@ -0,0 +1,26 @@
+/**
+ * \copyright
+ * Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org)
+ *            Distributed under a Modified BSD License.
+ *              See accompanying file LICENSE.txt or
+ *              http://www.opengeosys.org/project/license
+ *
+ */
+
+#ifndef PROCESSLIB_SECONDARYVARIABLECONTEXT_H
+#define PROCESSLIB_SECONDARYVARIABLECONTEXT_H
+
+namespace ProcessLib
+{
+class SecondaryVariableContext
+{
+public:
+    GlobalIndexType getIndex() const { return _index; }
+    void setIndex(GlobalIndexType index) { _index = index; }
+private:
+    GlobalIndexType _index = 0;
+};
+
+}  // namespace ProcessLib
+
+#endif  // PROCESSLIB_SECONDARYVARIABLECONTEXT_H
-- 
GitLab