The PYACTION keyword is implemented with a Python module with a run() function in an external module.
10 lines
248 B
Python
10 lines
248 B
Python
def run(ecl_state, schedule, report_step, sim):
|
|
wells_shut = False
|
|
|
|
for well in sim.wells:
|
|
if sim.well_var(well, "WWCT") > 0.50:
|
|
schedule.shut_well(well, report_step)
|
|
wells_shut = True
|
|
|
|
return wells_shut
|