Skip to content
Snippets Groups Projects
Commit 01d9fc54 authored by Stefan Girke's avatar Stefan Girke
Browse files

improved utility.hh by some additional methods

parent 06b3151e
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ namespace Dune ...@@ -34,7 +34,7 @@ namespace Dune
//! simulation end time //! simulation end time
virtual double endTime () const virtual double endTime () const
{ {
return Fem::Parameter::getValue< double >( "femhowto.endTime" ); return Fem::Parameter::getValue< double >( "femdg.stepper.endtime" );
} }
//! retujrn refinement tolerance //! retujrn refinement tolerance
...@@ -98,6 +98,18 @@ namespace Dune ...@@ -98,6 +98,18 @@ namespace Dune
return Fem::Parameter::getValue<int>( keyPrefix_ + "adaptcount", 1 ); 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 //! return true if verbosity mode is enabled
virtual bool verbose () const { return Fem::Parameter::getValue< bool >( keyPrefix_ + "verbose", false ); } virtual bool verbose () const { return Fem::Parameter::getValue< bool >( keyPrefix_ + "verbose", false ); }
}; };
......
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