From 576a55ff62662bbb255a77deffe0bfecdc7b9348 Mon Sep 17 00:00:00 2001
From: Christoph Grueninger <christoph.grueninger@iws.uni-stuttgart.de>
Date: Wed, 5 Dec 2012 08:21:52 +0000
Subject: [PATCH] [Stokes LocalResidual] Call problem_().boxSDSource instead of
 problem_().source in computeSource. (bug found and reviewed by bernd)

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@9778 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 dumux/freeflow/stokes/stokeslocalresidual.hh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dumux/freeflow/stokes/stokeslocalresidual.hh b/dumux/freeflow/stokes/stokeslocalresidual.hh
index 1808f67911..6cd34eb425 100644
--- a/dumux/freeflow/stokes/stokeslocalresidual.hh
+++ b/dumux/freeflow/stokes/stokeslocalresidual.hh
@@ -281,10 +281,11 @@ protected:
         const VolumeVariables &volVars = elemVolVars[scvIdx];
 
         // retrieve the source term intrinsic to the problem
-        this->problem_().source(source,
-                                this->element_(),
-                                this->fvGeometry_(),
-                                scvIdx);
+        this->problem_().boxSDSource(source,
+                                     this->element_(),
+                                     this->fvGeometry_(),
+                                     scvIdx,
+                                     this->curVolVars_());
 
         // ATTENTION: The source term of the mass balance has to be chosen as
         // div (q_momentum) in the problem file
-- 
GitLab