Skip to content
Snippets Groups Projects
Commit 381960cf authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/richardsgravity' into 'master'

[richards] do not use runtime parameter for gravity



See merge request !76
parents a838349d cdb374f1
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ public:
{
typedef Dune::BlockVector<Dune::FieldVector<double, 1> > ScalarField;
typedef Dune::BlockVector<Dune::FieldVector<double, dimWorld> > VectorField;
bool gravity =GET_RUNTIME_PARAM_FROM_GROUP(TypeTag, bool, Problem, EnableGravity);
bool gravity =GET_PARAM_FROM_GROUP(TypeTag, bool, Problem, EnableGravity);
// get the number of degrees of freedom
unsigned numDofs = this->numDofs();
......
......@@ -64,7 +64,7 @@ public:
RichardsProblem(TimeManager &timeManager, const GridView &gridView)
: ParentType(timeManager, gridView)
{
bool gravity_ =GET_RUNTIME_PARAM_FROM_GROUP(TypeTag, bool, Problem, EnableGravity);
bool gravity_ = GET_PARAM_FROM_GROUP(TypeTag, bool, Problem, EnableGravity);
static const bool useHead = GET_PROP_VALUE(TypeTag, UseHead);
if ( (!gravity_) && (useHead) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment