Skip to content
Snippets Groups Projects
fixedpointiterator_tmpl.cc 921 B
Newer Older
#ifndef MY_DIM
#error MY_DIM unset
#endif

#include <dune/common/function.hh>

#include <dune/solvers/norms/energynorm.hh>
#include <dune/tnnmg/problem-classes/convexproblem.hh>

#include <dune/tectonic/globalfriction.hh>
#include <dune/tectonic/myblockproblem.hh>

#include "explicitgrid.hh"
#include "explicitvectors.hh"

#include "solverfactory.hh"
#include "state/stateupdater.hh"
#include "timestepping.hh"

using Function = Dune::VirtualFunction<double, double>;
using Factory = SolverFactory<
    MY_DIM,
    MyBlockProblem<ConvexProblem<GlobalFriction<Matrix, Vector>, Matrix>>,
    Grid>;
using MyStateUpdater = StateUpdater<ScalarVector, Vector>;
using MyVelocityUpdater = TimeSteppingScheme<Vector, Matrix, Function, MY_DIM>;
using ErrorNorm = EnergyNorm<ScalarMatrix, ScalarVector>;

template class FixedPointIterator<Factory, MyStateUpdater, MyVelocityUpdater,
                                  ErrorNorm>;