Skip to content

Commit

Permalink
Adapt everest to run_reservoirsimulator
Browse files Browse the repository at this point in the history
This is a fixup of a regression from 1ae12f6
  • Loading branch information
berland committed Jan 13, 2025
1 parent 4480295 commit a17fb1c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test_ert_with_flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
- name: Run Everest on an example configuration with flow
run: |
set +e
pushd test-data/everest/egg/everest/model
everest lint config_flow.yml
everest run config_flow.yml
Expand Down
7 changes: 7 additions & 0 deletions src/everest/simulator/everest_to_ert.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,13 @@ def _extract_forward_model(ever_config: EverestConfig, ert_config):
fm_steps = ert_config.get(ErtConfigKeys.FORWARD_MODEL, [])
for job in forward_model:
job_name, *args = job.split()
match job_name:
case "eclipse100":
args = ["eclipse", *args]
case "eclipse300":
args = ["e300", *args]
case "flow":
args = ["flow", *args]
fm_steps.append([job_name, args])

ert_config[ErtConfigKeys.FORWARD_MODEL] = fm_steps
Expand Down
2 changes: 1 addition & 1 deletion tests/everest/test_egg_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def _generate_exp_ert_config(config_path, output_dir):
],
[
"eclipse100",
["eclipse/model/EGG.DATA", "--version", "2020.2"],
["eclipse", "eclipse/model/EGG.DATA", "--version", "2020.2"],
],
["rf", ["-s", "eclipse/model/EGG", "-o", "rf"]],
],
Expand Down

0 comments on commit a17fb1c

Please sign in to comment.