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

Abort when instantiating a RiemannianTrustRegionSolver class with a P3 basis

The global indexing infrastructure does not currently support P3 spaces.

[[Imported from SVN: r9924]]
parent 89c3c17a
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,9 @@ class RiemannianTrustRegionSolver ...@@ -39,7 +39,9 @@ class RiemannianTrustRegionSolver
typedef Dune::BlockVector<Dune::FieldVector<field_type, blocksize> > CorrectionType; typedef Dune::BlockVector<Dune::FieldVector<field_type, blocksize> > CorrectionType;
typedef std::vector<TargetSpace> SolutionType; typedef std::vector<TargetSpace> SolutionType;
#ifdef SECOND_ORDER #ifdef THIRD_ORDER
#error RiemannianTrustRegionSolver cannot currently be used for third-order spaces
#elif defined SECOND_ORDER
typedef Dune::GlobalP2Mapper<typename GridType::LeafGridView> GUIndex; typedef Dune::GlobalP2Mapper<typename GridType::LeafGridView> GUIndex;
#else #else
typedef GlobalUniqueIndex<typename GridType::LeafGridView, gridDim> GUIndex; typedef GlobalUniqueIndex<typename GridType::LeafGridView, gridDim> GUIndex;
......
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