mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add warning to c solvers when stopped wells occur
Stopped wells are treated as shut wells in the c solvers in opm-core. I.e they are completly isolated from the domain.
This commit is contained in:
@@ -870,7 +870,7 @@ assemble_completion_to_well(int i, int w, int c, int nc, int np,
|
|||||||
ctrl = W->ctrls[ w ];
|
ctrl = W->ctrls[ w ];
|
||||||
|
|
||||||
if (well_controls_well_is_stopped( ctrl )) {
|
if (well_controls_well_is_stopped( ctrl )) {
|
||||||
/* Interpreting a negative current control index to mean a shut well */
|
fprintf(stderr, "Stopped well detected: will be treated as completely shut\n");
|
||||||
welleq_coeff_shut(np, h, &res, &w2c, &w2w);
|
welleq_coeff_shut(np, h, &res, &w2c, &w2w);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -364,9 +364,8 @@ assemble_well_contrib(int nc ,
|
|||||||
ctrls = W->ctrls[ w ];
|
ctrls = W->ctrls[ w ];
|
||||||
|
|
||||||
if (well_controls_well_is_stopped(ctrls) ) {
|
if (well_controls_well_is_stopped(ctrls) ) {
|
||||||
|
fprintf(stderr, "Stopped well detected: will be treated as completely shut\n");
|
||||||
/* Treat this well as a shut well, isolated from the domain. */
|
/* Treat this well as a shut well, isolated from the domain. */
|
||||||
|
|
||||||
assemble_shut_well(nc, w, W, mt, h);
|
assemble_shut_well(nc, w, W, mt, h);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user