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

Switch the harmonicmaps code to Lagrange elements again

And make that code path work again!
parent 1ad70b7d
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <dune/grid/io/file/vtk.hh> #include <dune/grid/io/file/vtk.hh>
#include <dune/functions/gridfunctions/discretescalarglobalbasisfunction.hh> #include <dune/functions/gridfunctions/discretescalarglobalbasisfunction.hh>
#include <dune/functions/functionspacebases/pq1nodalbasis.hh>
#include <dune/functions/functionspacebases/pqknodalbasis.hh> #include <dune/functions/functionspacebases/pqknodalbasis.hh>
#include <dune/functions/functionspacebases/bsplinebasis.hh> #include <dune/functions/functionspacebases/bsplinebasis.hh>
...@@ -58,7 +57,7 @@ typedef UnitVector<double,3> TargetSpace; ...@@ -58,7 +57,7 @@ typedef UnitVector<double,3> TargetSpace;
// Tangent vector of the image space // Tangent vector of the image space
const int blocksize = TargetSpace::TangentVector::dimension; const int blocksize = TargetSpace::TangentVector::dimension;
//#define LAGRANGE #define LAGRANGE
using namespace Dune; using namespace Dune;
...@@ -91,7 +90,9 @@ int main (int argc, char *argv[]) try ...@@ -91,7 +90,9 @@ int main (int argc, char *argv[]) try
// read problem settings // read problem settings
const int numLevels = parameterSet.get<int>("numLevels"); const int numLevels = parameterSet.get<int>("numLevels");
#ifndef LAGRANGE
const int order = parameterSet.get<int>("order"); const int order = parameterSet.get<int>("order");
#endif
// read solver settings // read solver settings
const double tolerance = parameterSet.get<double>("tolerance"); const double tolerance = parameterSet.get<double>("tolerance");
const int maxTrustRegionSteps = parameterSet.get<int>("maxTrustRegionSteps"); const int maxTrustRegionSteps = parameterSet.get<int>("maxTrustRegionSteps");
...@@ -136,7 +137,7 @@ int main (int argc, char *argv[]) try ...@@ -136,7 +137,7 @@ int main (int argc, char *argv[]) try
// Construct the scalar function space basis corresponding to the GFE space // Construct the scalar function space basis corresponding to the GFE space
////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////
#ifdef LAGRANGE #ifdef LAGRANGE
typedef Dune::Functions::PQKNodalBasis<typename GridType::LeafGridView, 1> FEBasis; typedef Dune::Functions::PQkNodalBasis<typename GridType::LeafGridView, 1> FEBasis;
FEBasis feBasis(grid->leafGridView()); FEBasis feBasis(grid->leafGridView());
#else #else
typedef Dune::Functions::BSplineBasis<typename GridType::LeafGridView> FEBasis; typedef Dune::Functions::BSplineBasis<typename GridType::LeafGridView> FEBasis;
......
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