Skip to content
Snippets Groups Projects
Commit 59c57603 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Compute L^2 error of the real geodesic fe interpolation

[[Imported from SVN: r10025]]
parent a1a3c4c2
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <dune/gfe/chiralskyrmionenergy.hh> #include <dune/gfe/chiralskyrmionenergy.hh>
#include <dune/gfe/geodesicfeassembler.hh> #include <dune/gfe/geodesicfeassembler.hh>
#include <dune/gfe/riemanniantrsolver.hh> #include <dune/gfe/riemanniantrsolver.hh>
#include <dune/gfe/embeddedglobalgfefunction.hh>
// grid dimension // grid dimension
const int dim = 2; const int dim = 2;
...@@ -241,11 +242,7 @@ int main (int argc, char *argv[]) try ...@@ -241,11 +242,7 @@ int main (int argc, char *argv[]) try
std::string lambda = std::string("lambda x: (") + parameterSet.get<std::string>("referenceSolution") + std::string(")"); std::string lambda = std::string("lambda x: (") + parameterSet.get<std::string>("referenceSolution") + std::string(")");
PythonFunction<FieldVector<double,dim>, TargetSpace::CoordinateType > pythonReferenceSolution(Python::evaluate(lambda)); PythonFunction<FieldVector<double,dim>, TargetSpace::CoordinateType > pythonReferenceSolution(Python::evaluate(lambda));
std::vector<TargetSpace::CoordinateType> xEmbedded(x.size()); GFE::EmbeddedGlobalGFEFunction<FEBasis, TargetSpace> numericalSolution(feBasis, x);
for (size_t i=0; i<x.size(); i++)
xEmbedded[i] = x[i].globalCoordinates();
BasisGridFunction<FEBasis,std::vector<TargetSpace::CoordinateType> > numericalSolution(feBasis, xEmbedded);
// QuadratureRule for the integral of the L^2 error // QuadratureRule for the integral of the L^2 error
QuadratureRuleKey quadKey(dim,3); QuadratureRuleKey quadKey(dim,3);
......
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