mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-26 03:00:17 -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:
parent
82eafbb510
commit
1718800e55
@ -870,7 +870,7 @@ assemble_completion_to_well(int i, int w, int c, int nc, int np,
|
||||
ctrl = W->ctrls[ w ];
|
||||
|
||||
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);
|
||||
}
|
||||
else {
|
||||
|
@ -364,9 +364,8 @@ assemble_well_contrib(int nc ,
|
||||
ctrls = W->ctrls[ w ];
|
||||
|
||||
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. */
|
||||
|
||||
assemble_shut_well(nc, w, W, mt, h);
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user