mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-25 23:20:12 -05:00
Fix error in comment.
This commit is contained in:
1 parent
5e4fe9863d
commit
0aa699d065
2 files changed
+9
-3
No files matched your search
@@ -276,8 +276,11 @@ struct StandardPreconditioners
|
||||
op, prm, weightsCalculator, pressureIndex, comm);
|
||||
});
|
||||
|
||||
// Only add CPRW preconditioners to the factory if the operator
|
||||
// is an actual matrix or GostLastMatrixAdapter operator.
|
||||
// Add CPRW only for the WellModelGhostLastMatrixAdapter, as the method requires that the
|
||||
// operator has the addWellPressureEquations() method (and a few more) it can not be combined
|
||||
// with a well-less operator such as GhostLastMatrixAdapter or OverlappingSchwarzOperator.
|
||||
// For OPM Flow this corresponds to requiring --matrix-add-well-contributions=false
|
||||
// (which is the default).
|
||||
if constexpr (std::is_same_v<O, WellModelGhostLastMatrixAdapter<M, V, V, true>>) {
|
||||
F::addCreator("cprw",
|
||||
[](const O& op,
|
||||
|
||||
@@ -174,7 +174,10 @@ struct StandardPreconditioners<Operator, Dune::Amg::SequentialInformation, typen
|
||||
#endif
|
||||
}
|
||||
|
||||
// Add CPRW only for the well operator variant, i.e. --matrix-add-well-contributions=false
|
||||
// Add CPRW only for the WellModelMatrixAdapter, as the method requires that the operator
|
||||
// has the addWellPressureEquations() method (and a few more) it can not be combined with
|
||||
// a well-less operator such as Dune::MatrixAdapter. For OPM Flow this corresponds to
|
||||
// requiring --matrix-add-well-contributions=false (which is the default).
|
||||
if constexpr (std::is_same_v<O, WellModelMatrixAdapter<M, V, V>>) {
|
||||
F::addCreator(
|
||||
"cprw",
|
||||
|
||||
Reference in new issue
Block a user