fixed: handle 'default' preconditioner for ISTL

This commit is contained in:
Arne Morten Kvarving 2022-05-09 10:38:54 +02:00
parent 5391cfbc6b
commit 0fb14fe00d

View File

@ -394,6 +394,8 @@ ISTL::Preconditioner* ISTLSolParams::setupPCInternal(ISTL::Mat& A,
std::unique_ptr<ISTL::InverseOperator>* solver)
{
std::string prec = solParams.getBlock(block).getStringValue("pc");
if (prec == "default")
prec = adm.getNoProcs() > 1 ? "asm" : "ilu";
if (prec == "ilu") {
int fill_level = solParams.getBlock(block).getIntValue("ilu_fill_level");
if (fill_level == 0)