Skip to content
Snippets Groups Projects
Commit 9d7410b6 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

actually test function evaluation and derivative evaluation

[[Imported from SVN: r8025]]
parent e4010b4e
No related branches found
No related tags found
No related merge requests found
...@@ -51,8 +51,15 @@ void test() ...@@ -51,8 +51,15 @@ void test()
LocalGFETestFunction<domainDim,double,LocalFiniteElement,TargetSpace> testFunctionSet(feCache.get(simplex),coefficients); LocalGFETestFunction<domainDim,double,LocalFiniteElement,TargetSpace> testFunctionSet(feCache.get(simplex),coefficients);
FieldVector<double,domainDim> stupidTestPoint(0); FieldVector<double,domainDim> stupidTestPoint(0);
std::vector<Dune::array<typename TargetSpace::EmbeddedTangentVector, TargetSpace::TangentVector::dimension> > values;
// test whether evaluation of the shape functions works
std::vector<array<typename TargetSpace::EmbeddedTangentVector, TargetSpace::TangentVector::dimension> > values;
testFunctionSet.evaluateFunction(stupidTestPoint, values); testFunctionSet.evaluateFunction(stupidTestPoint, values);
// test whether evaluation of the shape function derivatives works
std::vector<array<FieldMatrix<double, TargetSpace::EmbeddedTangentVector::dimension, domainDim>, TargetSpace::TangentVector::dimension> > derivatives;
testFunctionSet.evaluateJacobian(stupidTestPoint, derivatives);
} }
} }
......
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