From fabc9a85b6595a332c09cf3782c73ea64eabacb6 Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Sat, 30 Jan 2016 07:18:14 +0100 Subject: [PATCH] Switch the harmonicmaps code to Lagrange elements again And make that code path work again! --- src/harmonicmaps.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/harmonicmaps.cc b/src/harmonicmaps.cc index bc7a3636..96e483f9 100644 --- a/src/harmonicmaps.cc +++ b/src/harmonicmaps.cc @@ -19,7 +19,6 @@ #include <dune/grid/io/file/vtk.hh> #include <dune/functions/gridfunctions/discretescalarglobalbasisfunction.hh> -#include <dune/functions/functionspacebases/pq1nodalbasis.hh> #include <dune/functions/functionspacebases/pqknodalbasis.hh> #include <dune/functions/functionspacebases/bsplinebasis.hh> @@ -58,7 +57,7 @@ typedef UnitVector<double,3> TargetSpace; // Tangent vector of the image space const int blocksize = TargetSpace::TangentVector::dimension; -//#define LAGRANGE +#define LAGRANGE using namespace Dune; @@ -91,7 +90,9 @@ int main (int argc, char *argv[]) try // read problem settings const int numLevels = parameterSet.get<int>("numLevels"); +#ifndef LAGRANGE const int order = parameterSet.get<int>("order"); +#endif // read solver settings const double tolerance = parameterSet.get<double>("tolerance"); const int maxTrustRegionSteps = parameterSet.get<int>("maxTrustRegionSteps"); @@ -136,7 +137,7 @@ int main (int argc, char *argv[]) try // Construct the scalar function space basis corresponding to the GFE space ////////////////////////////////////////////////////////////////////////////////// #ifdef LAGRANGE - typedef Dune::Functions::PQKNodalBasis<typename GridType::LeafGridView, 1> FEBasis; + typedef Dune::Functions::PQkNodalBasis<typename GridType::LeafGridView, 1> FEBasis; FEBasis feBasis(grid->leafGridView()); #else typedef Dune::Functions::BSplineBasis<typename GridType::LeafGridView> FEBasis; -- GitLab