Skip to content
Snippets Groups Projects
Commit e9943306 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

[Cleanup] Rename: FactoryType -> NonlinearFactoryType

parent 60565fcd
No related branches found
No related tags found
No related merge requests found
......@@ -392,13 +392,14 @@ int main(int argc, char *argv[]) {
// Set up TNNMG solver
auto const solverTolerance = parset.get<double>("solver.tolerance");
using FactoryType = MySolver<
using NonlinearFactoryType = MySolver<
dims,
MyBlockProblem<ConvexProblem<
Dune::GlobalNonlinearity<MatrixType, VectorType>, MatrixType>>,
GridType>;
FactoryType factory(parset.sub("solver.tnnmg"), refinements,
solverTolerance, *grid, velocityDirichletNodes);
NonlinearFactoryType factory(parset.sub("solver.tnnmg"), refinements,
solverTolerance, *grid,
velocityDirichletNodes);
auto multigridStep = factory.getSolver();
Solver::VerbosityMode const verbosity =
parset.get<bool>("verbose") ? Solver::FULL : Solver::QUIET;
......@@ -466,11 +467,11 @@ int main(int argc, char *argv[]) {
myGlobalNonlinearity->updateState(_alpha);
// FIXME: Do we really need to pass u here?
typename FactoryType::ConvexProblemType const myConvexProblem(
typename NonlinearFactoryType::ConvexProblemType const myConvexProblem(
1.0, problem_AM, *myGlobalNonlinearity, problem_rhs,
_problem_iterate);
typename FactoryType::BlockProblemType velocityProblem(parset,
myConvexProblem);
typename NonlinearFactoryType::BlockProblemType velocityProblem(
parset, myConvexProblem);
multigridStep->setProblem(_problem_iterate, velocityProblem);
velocityProblemSolver.preprocess();
......
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