Skip to content
Snippets Groups Projects
Commit 389b1342 authored by Martin Nolte's avatar Martin Nolte
Browse files

make allowsRefinement filer time-dependent

parent 2348a868
No related branches found
No related tags found
No related merge requests found
......@@ -275,9 +275,11 @@ public:
/** \brief check with the problem setup whether or not a cell is allowed to be refined
*
* \param[in] en Entity
* \param[in] time Current model time
* \return true if the cell can be refined
*/
inline bool allowsRefinement( const EntityType& en ) const
inline bool allowsRefinement( const EntityType& en,
const double time ) const
{
return true;
}
......
......@@ -569,7 +569,7 @@ namespace Dune {
JacobianRangeType& gDiffLeft,
JacobianRangeType& gDiffRight ) const
{
if( ! model_.allowsRefinement( inside() ) )
if( ! model_.allowsRefinement( inside(), time ) )
return 0.;
double ldt = BaseType :: numericalFlux( it, time, faceQuadInner, faceQuadOuter, quadPoint,
......
......@@ -604,7 +604,7 @@ namespace Dune {
JacobianRangeType& gDiffLeft,
JacobianRangeType& gDiffRight ) const
{
if( ! model_.allowsRefinement( inside() ) )
if( ! model_.allowsRefinement( inside(), time ) )
return 0.;
// call numerical flux of base type
......
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