From 172de04817e1b9b4b9f94dd6e19d2980792d253d Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Mon, 12 Sep 2016 09:59:55 +0200
Subject: [PATCH] [PL] Add LocalAssemblerInterface::getFlux.

Necessary for BalanceProcess.
---
 ProcessLib/LocalAssemblerInterface.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/ProcessLib/LocalAssemblerInterface.h b/ProcessLib/LocalAssemblerInterface.h
index 355bb5d8f1c..f1f887c4f49 100644
--- a/ProcessLib/LocalAssemblerInterface.h
+++ b/ProcessLib/LocalAssemblerInterface.h
@@ -11,6 +11,7 @@
 #define PROCESSLIB_LOCALASSEMBLERINTERFACE_H
 
 #include "NumLib/NumericsConfig.h"
+#include "MathLib/Point3d.h"
 
 namespace NumLib
 {
@@ -53,6 +54,15 @@ public:
                               NumLib::LocalToGlobalIndexMap const& dof_table,
                               GlobalVector const& x);
 
+    /// Computes the flux in the point \c p_local_coords that is given in local
+    /// coordinates using the values from \c local_x.
+    virtual std::vector<double> getFlux(
+        MathLib::Point3d const& p_local_coords,
+        std::vector<double> const& local_x) const
+    {
+        return std::vector<double>();
+    }
+
 private:
     virtual void preTimestepConcrete(std::vector<double> const& /*local_x*/,
                                      double const /*t*/, double const /*dt*/)
-- 
GitLab