add SSOR smoother

This commit is contained in:
Tobias Meyer Andersen 2023-11-28 10:57:19 +01:00
parent f6c539f819
commit fd6319fe38

View File

@ -253,6 +253,15 @@ struct StandardPreconditioners
auto crit = AMGHelper<O,C,M,V>::criterion(prm);
PrecPtr prec = std::make_shared<Dune::Amg::AMGCPR<O, V, Smoother, C>>(op, crit, sargs, comm);
return prec;
}
else if (smoother == "SSOR") {
using SeqSmoother = SeqSSOR<M, V, V>;
using Smoother = Dune::BlockPreconditioner<V, V, C, SeqSmoother>;
using SmootherArgs = typename Dune::Amg::SmootherTraits<Smoother>::Arguments;
SmootherArgs sargs;
auto crit = AMGHelper<O,C,M,V>::criterion(prm);
PrecPtr prec = std::make_shared<Dune::Amg::AMGCPR<O, V, Smoother, C>>(op, crit, sargs, comm);
return prec;
}else {
OPM_THROW(std::invalid_argument, "Properties: No smoother with name " + smoother + ".");
}