opm-simulators icon indicating copy to clipboard operation
opm-simulators copied to clipboard

Soverfactory throws error for --linear-solver=amg

Open blattms opened this issue 9 months ago • 1 comments

because it is not registered, but our docs say that this is possible,

blattms avatar Mar 12 '25 14:03 blattms

This requires --matrix-add-well-contributions=true (i.e. that the operator is a matrix operator). Maybe we could relax that requirement, or at least output a more helpful message. This applies to both serial and parallel runs.

The code in the factory:

        if constexpr (std::is_same_v<O, Dune::MatrixAdapter<M, V, V>>) {
            F::addCreator("amg", [](const O& op, const P& prm, const std::function<V()>&, std::size_t) {
                ...

atgeirr avatar Mar 20 '25 14:03 atgeirr