diff --git a/dune/fem-dg/operator/adaptation/utility.hh b/dune/fem-dg/operator/adaptation/utility.hh index b4a63b9923248763ebcce42a4f4441e836ed67f6..281d19f88adc7511b6cc7fa833d027ae57bebb7f 100644 --- a/dune/fem-dg/operator/adaptation/utility.hh +++ b/dune/fem-dg/operator/adaptation/utility.hh @@ -34,7 +34,7 @@ namespace Dune //! simulation end time virtual double endTime () const { - return Fem::Parameter::getValue< double >( "femhowto.endTime" ); + return Fem::Parameter::getValue< double >( "femdg.stepper.endtime" ); } //! retujrn refinement tolerance @@ -98,6 +98,18 @@ namespace Dune return Fem::Parameter::getValue<int>( keyPrefix_ + "adaptcount", 1 ); } + virtual bool method () const + { + const std::string names[] = { "none", "generic", "callback" }; + // default value is none + return Fem::Parameter::getEnum( keyPrefix_ + "method", names, 0 ); + } + + virtual bool adaptive () const + { + return method() != 0; + } + //! return true if verbosity mode is enabled virtual bool verbose () const { return Fem::Parameter::getValue< bool >( keyPrefix_ + "verbose", false ); } };