Commit fd06ea60 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

Since commit r10693, all problems that use a model based on FVPressure had to...

Since commit r10693, all problems that use a model based on FVPressure had to provide an initial(AtPos) function. Default implementations are available in onemodelproblem.hh and impetproblem.hh, but threw an exception. Since many test problems have lived for several years with an initial guess of 0, the default behavior has been changed to not throw an exception and to set the values to 0.

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10737 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent f5e4c81b
......@@ -309,10 +309,8 @@ public:
void initialAtPos(PrimaryVariables &values,
const GlobalPosition &globalPos) const
{
// Throw an exception (there is no initial condition)
DUNE_THROW(Dune::InvalidStateException,
"The problem does not provide "
"a initialAtPos() method.");
// initialize with 0 by default
values = 0;
}
/*!
......
......@@ -311,10 +311,8 @@ public:
void initialAtPos(PrimaryVariables &values,
const GlobalPosition &globalPos) const
{
// Throw an exception (there is no initial condition)
DUNE_THROW(Dune::InvalidStateException,
"The problem does not provide "
"a initialAtPos() method.");
// initialize with 0 by default
values = 0;
}
/*!
......
Supports Markdown
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