mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2898 from blattms/always-accu-to-one-proc-as-default
Always accumulates data in AMG to 1 process on coarse levels.
This commit is contained in:
commit
adfb8ef771
@ -134,6 +134,10 @@ private:
|
|||||||
criterion.setNoPreSmoothSteps(prm.get<int>("pre_smooth", 1));
|
criterion.setNoPreSmoothSteps(prm.get<int>("pre_smooth", 1));
|
||||||
criterion.setNoPostSmoothSteps(prm.get<int>("post_smooth", 1));
|
criterion.setNoPostSmoothSteps(prm.get<int>("post_smooth", 1));
|
||||||
criterion.setDebugLevel(prm.get<int>("verbosity", 0));
|
criterion.setDebugLevel(prm.get<int>("verbosity", 0));
|
||||||
|
// As the default we request to accumulate data to 1 process always as our matrix
|
||||||
|
// graph might be unsymmetric and hence not supported by the PTScotch/ParMetis
|
||||||
|
// calls in DUNE. Accumulating to 1 skips PTScotch/ParMetis
|
||||||
|
criterion.setAccumulate(static_cast<Dune::Amg::AccumulationMode>(prm.get<int>("accumulate", 1)));
|
||||||
return criterion;
|
return criterion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,6 +61,10 @@ setupCPR(const std::string& conf, const FlowLinearSolverParameters& p)
|
|||||||
prm.put("preconditioner.coarsesolver.preconditioner.verbosity", 0);
|
prm.put("preconditioner.coarsesolver.preconditioner.verbosity", 0);
|
||||||
prm.put("preconditioner.coarsesolver.preconditioner.maxlevel", 15);
|
prm.put("preconditioner.coarsesolver.preconditioner.maxlevel", 15);
|
||||||
prm.put("preconditioner.coarsesolver.preconditioner.skip_isolated", 0);
|
prm.put("preconditioner.coarsesolver.preconditioner.skip_isolated", 0);
|
||||||
|
// We request to accumulate data to 1 process always as our matrix
|
||||||
|
// graph might be unsymmetric and hence not supported by the PTScotch/ParMetis
|
||||||
|
// calls in DUNE. Accumulating to 1 skips PTScotch/ParMetis
|
||||||
|
prm.put("preconditioner.coarsesolver.preconditioner.accumulate", 1);
|
||||||
return prm;
|
return prm;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,6 +89,10 @@ setupAMG([[maybe_unused]] const std::string& conf, const FlowLinearSolverParamet
|
|||||||
prm.put("preconditioner.verbosity", 0);
|
prm.put("preconditioner.verbosity", 0);
|
||||||
prm.put("preconditioner.maxlevel", 15);
|
prm.put("preconditioner.maxlevel", 15);
|
||||||
prm.put("preconditioner.skip_isolated", 0);
|
prm.put("preconditioner.skip_isolated", 0);
|
||||||
|
// We request to accumulate data to 1 process always as our matrix
|
||||||
|
// graph might be unsymmetric and hence not supported by the PTScotch/ParMetis
|
||||||
|
// calls in DUNE. Accumulating to 1 skips PTScotch/ParMetis
|
||||||
|
prm.put("preconditioner.accumulate", 1);
|
||||||
return prm;
|
return prm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user