opm⚓︎
Wrap OPM-flow
ebos
⚓︎
Bases: eclipse
Class for running OPM ebos with Eclipse input files. Inherits eclipse parent class for setting up and running simulations, and reading the results.
flow
⚓︎
Bases: eclipse
Class for running OPM flow with Eclipse input files. Inherits eclipse parent class for setting up and running simulations, and reading the results.
SLURM_ARRAY_HPC_run(n_e, venv, filename, **kwargs)
⚓︎
HPC run manager for Slurm array jobs. Each ensemble member runs independently in its own task.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
n_e
|
list[int]
|
Indices of ensemble members to simulate. |
required |
venv
|
str
|
Path to Python virtual environment activate script. |
required |
filename
|
str
|
Simulation input file. |
required |
kwargs
|
dict
|
Extra simulation options. Recognized: - sim_limit (float seconds or str HH:MM:SS) - mem (default "4G") - cpus_per_task (default 2) |
{}
|
SLURM_HPC_run(n_e, venv, filename, **kwargs)
⚓︎
HPC run manager for SLURM.
This function will start num_runs of sim.call_sim() using job arrays in SLURM.
are_jobs_done(job_id)
⚓︎
Check if all job array tasks are completed using sacct.
call_sim(folder=None, wait_for_proc=False)
⚓︎
check_sim_end(finished_member=None)
⚓︎
Check in RPT file for "End of simulation" to see if OPM flow is done.
Changelog
- ST 19/10-18
wait_for_jobs(job_id, wait_time=10)
⚓︎
Wait until all job array tasks are completed.