Skip to content
Snippets Groups Projects
Commit b889a788 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Use smaller step size for the FD approximation

Use 1e-8: The square root of the machine precision is said to be the best choice.
parent af1fa3d1
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ auto
evaluateDerivativeFD(const LocalFunction& f, const Dune::FieldVector<ctype, dim>& local)
-> decltype(f.evaluateDerivative(local))
{
double eps = 1e-6;
double eps = 1e-8;
static const int embeddedDim = LocalFunction::TargetSpace::embeddedDim;
Dune::FieldMatrix<ctype, embeddedDim, dim> result;
......
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