From 37cee6ca93e2e2f6bd6ec66eeb93e5bbcbb42c52 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Mon, 12 Sep 2016 09:58:21 +0200
Subject: [PATCH] [PL] Process::getFlux (for CalculateSurfaceFlux).

---
 ProcessLib/Process.h | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/ProcessLib/Process.h b/ProcessLib/Process.h
index 720f31b77b0..8e48390979f 100644
--- a/ProcessLib/Process.h
+++ b/ProcessLib/Process.h
@@ -79,8 +79,7 @@ public:
                               GlobalMatrix& Jac) override final;
 
     std::vector<NumLib::IndexValueVector<GlobalIndexType>> const*
-    getKnownSolutions(
-        double const t) const override final
+    getKnownSolutions(double const t) const override final
     {
         return _boundary_conditions.getKnownSolutions(t);
     }
@@ -103,6 +102,14 @@ public:
         return _secondary_variables;
     }
 
+    // used as call back for CalculateSurfaceFlux process
+    virtual std::vector<double> getFlux(std::size_t element_id,
+                                        MathLib::Point3d const& p,
+                                        GlobalVector const&) const
+    {
+        return std::vector<double>{};
+    }
+
 protected:
     NumLib::Extrapolator& getExtrapolator() const
     {
-- 
GitLab