Skip to content
Snippets Groups Projects
Commit 589e4dca authored by Robert Kloefkorn's avatar Robert Kloefkorn
Browse files

added missing method gradient to the ProblemInterface.

parent 91d543e3
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@
#define DUNE_DEFAULTPROBLEMINTERFACE_HH
#include <dune/common/version.hh>
#include <dune/common/exceptions.hh>
#include <dune/fem/function/common/timedependentfunction.hh>
#include <dune/fem/misc/gridsolution.hh>
......@@ -153,6 +155,7 @@ public:
{
velocity( x, v );
}
/**
* @brief old version of the exact solution
*
......@@ -311,9 +314,13 @@ public:
v = 0;
}
//! the gradient of the exact solution
//virtual void gradient(const DomainType& x,
// JacobianRangeType& grad) const = 0;
//! the gradient of the exact solution (default is empty)
virtual void gradient(const DomainType& x,
JacobianRangeType& grad) const
{
assert( false );
DUNE_THROW( NotImplemented, "ProblemInterface::gradient not overloaded but called!" );
}
//! return whether boundary is Dirichlet (true) or Neumann (false)
virtual bool dirichletBoundary(const int bndId, const DomainType& x) const
......
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