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