From 0e866630e4376769248cf269d89b52a9fbbc83c8 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Tue, 21 Feb 2017 09:32:24 +0100
Subject: [PATCH] [mixeddimension] Adjust order of pre/posttime step for models
 with growth

---
 dumux/mixeddimension/problem.hh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dumux/mixeddimension/problem.hh b/dumux/mixeddimension/problem.hh
index d0e7292231..ee8474fb57 100644
--- a/dumux/mixeddimension/problem.hh
+++ b/dumux/mixeddimension/problem.hh
@@ -178,8 +178,10 @@ public:
         }
         else
         {
-            bulkProblem().preTimeStep();
+            // call low dim problem first because it might grow and the
+            // coupling maps might need to be updated before the bulkproblem
             lowDimProblem().preTimeStep();
+            bulkProblem().preTimeStep();
         }
     }
 
@@ -316,8 +318,10 @@ public:
     {
         if (!useIterativeSolver_)
         {
-            bulkProblem().postTimeStep();
+            // call low dim problem first because it might grow and the
+            // coupling maps might need to be updated before the bulkproblem
             lowDimProblem().postTimeStep();
+            bulkProblem().postTimeStep();
         }
     }
 
-- 
GitLab