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

let the signature of allowsRefinment be the same as of hasBoundaryValue

parent 7568b642
No related branches found
No related tags found
No related merge requests found
......@@ -278,8 +278,9 @@ public:
* \param[in] time Current model time
* \return true if the cell can be refined
*/
inline bool allowsRefinement( const EntityType& en,
const double time ) const
inline bool allowsRefinement( const IntersectionType& en,
const double time,
const FaceDomainType& x ) const
{
return true;
}
......
......@@ -569,7 +569,7 @@ namespace Dune {
JacobianRangeType& gDiffLeft,
JacobianRangeType& gDiffRight ) const
{
if( ! model_.allowsRefinement( inside(), time ) )
if( ! model_.allowsRefinement( it, time, faceQuadInner.point( quadPoint) ) )
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(), time ) )
if( ! model_.allowsRefinement( it, time, faceQuadInner.point( quadPoint) ) )
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