Files
opm-simulators/tests
Kai Bao 61150b8c33 make CompWellEquations singular-matrix fallback robust for all block sizes
CompWellEquations::invert() replaced a singular well matrix with the identity
only when detail::invertMatrix() threw Opm::NumericalProblem, which happens
just for the 4x4 block (three-component wells). For other sizes a singular
matrix either throws Dune::FMatrixError (generic path) or silently produces
inf/NaN (e.g. the 3x3 path used by two-component wells), so the fallback was
bypassed and the Newton update became NaN. Catch both exception types and
additionally detect a non-finite inverse.

Add tests/test_compwell_equations.cpp covering the Schur-complement
solve/recoverSolutionWell/apply against dense references, plus the singular
fallback for both the 4x4 (throws) and 3x3 (silent inf/NaN) paths.
2026-07-01 13:56:43 +02:00
..
2025-03-12 11:33:48 +01:00
2026-06-04 06:11:36 +02:00
2026-03-05 09:32:47 +01:00
2023-12-04 12:40:55 +01:00
2023-02-16 17:32:04 +01:00
2026-03-31 13:56:01 +02:00
2026-06-04 06:11:36 +02:00
2026-05-29 23:09:56 +02:00