Commit 6aeeb2da authored by Andreas Lauser's avatar Andreas Lauser
Browse files

box models: do not require the problems to explicitly set the source term to zero

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@5145 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 64c5dd25
// $Id$
/*****************************************************************************
* Copyright (C) 2007 by Peter Bastian *
* Institute of Parallel and Distributed System *
* Department Simulation of Large Systems *
* University of Stuttgart, Germany *
* *
* Copyright (C) 2008-2010 by Andreas Lauser *
* Copyright (C) 2008-2011 by Andreas Lauser *
* Copyright (C) 2007-2009 by Bernd Flemisch *
* Institute of Hydraulic Engineering *
* University of Stuttgart, Germany *
......@@ -525,7 +520,7 @@ protected:
residual_[i] += dStorage_dt;
// subtract the source term from the local rate
PrimaryVariables source;
PrimaryVariables source(0.0);
this->asImp_().computeSource(source, i);
source *= fvElemGeom_().subContVol[i].volume;
residual_[i] -= source;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment