forked from equinor/ert
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace erts interface towards reservoir simulators
This replaces the yaml configuration file for Eclipse100/300 with a set of environment variables set through the plugin system. Ert cannot any longer start the raw Eclipse binary itself, it depends on the vendor supplied wrapper binary called "eclrun". Similarly, for OPM flow, Ert will now support a wrapper script "flowrun" if it is present, assuming it has a similar command line API as eclrun. If flowrun is not present, it will look for a binary "flow" in $PATH which can be used, but then only with single-cpu possibilities. Users can point to a custom location of eclrun by adding SETENV to the configuration file.
- Loading branch information
Showing
25 changed files
with
1,396 additions
and
1,845 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
type: string | ||
python-version: | ||
type: string | ||
|
||
env: | ||
UV_SYSTEM_PYTHON: 1 | ||
|
||
jobs: | ||
test-ert-with-flow: | ||
name: Run ert tests | ||
timeout-minutes: 20 | ||
runs-on: ${{ inputs.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
id: setup_python | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
|
||
- name: Install ert and everest | ||
run: | | ||
uv pip install ".[everest,dev]" | ||
uv pip install git+https://github.com/equinor/everest-models | ||
- name: Install flow | ||
run: | | ||
set -e | ||
sudo apt install software-properties-common | ||
sudo apt-add-repository ppa:opm/ppa | ||
sudo apt update | ||
sudo apt install mpi-default-bin | ||
sudo apt install libopm-simulators-bin python3-opm-common | ||
which flow | ||
flow --version | ||
- name: Run integration tests towards OPM flow without flowrun | ||
run: | | ||
set -e | ||
pytest tests/ert/unit_tests/resources/test_run_flow_simulator.py | ||
- name: Run Ert on an example configuration with flow | ||
run: | | ||
pushd test-data/ert/flow_example | ||
perl -p -i -e 's/NUM_REALIZATIONS\s*12/NUM_REALIZATIONS 2/g' flow.ert | ||
ert ensemble_experiment flow.ert | ||
popd | ||
- 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 | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/ert/resources/forward_models/res/script/ecl100_config.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/ert/resources/forward_models/res/script/ecl300_config.yml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.