Skip to content

Commit

Permalink
Add MISFIT_PREPROCESSOR workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterjdb committed Feb 12, 2021
1 parent 2250877 commit 85473c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/flownet/ert/_create_ert_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ def create_ert_setup( # pylint: disable=too-many-arguments
with open(os.path.join(output_folder, "pipfreeze.output"), "w") as fh:
subprocess.call(["pip", "freeze"], stdout=fh)

shutil.copyfile(
_MODULE_FOLDER / ".." / "static" / "MISFIT_PREPROCESSOR_WORKFLOW",
output_folder / "MISFIT_PREPROCESSOR_WORKFLOW",
)

for section in ["RUNSPEC", "PROPS", "SOLUTION", "SCHEDULE"]:
static_source_path = pathlib.Path(static_path) / f"{section}.inc"
if static_source_path.is_file():
Expand Down
1 change: 1 addition & 0 deletions src/flownet/static/MISFIT_PREPROCESSOR_WORKFLOW
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MISFIT_PREPROCESSOR
2 changes: 2 additions & 0 deletions src/flownet/templates/ahm_config.ert.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ LOAD_WORKFLOW_JOB ./SAVE_ITERATION_ANALYTICS_WORKFLOW_JOB
LOAD_WORKFLOW SAVE_ITERATION_ANALYTICS_WORKFLOW
HOOK_WORKFLOW SAVE_ITERATION_ANALYTICS_WORKFLOW POST_SIMULATION
{%- endif %}
LOAD_WORKFLOW MISFIT_PREPROCESSOR_WORKFLOW
HOOK_WORKFLOW MISFIT_PREPROCESSOR_WORKFLOW PRE_FIRST_UPDATE

GEN_KW FLOWNET_PARAMETERS ./EMPTYFILE ./EMPTYFILE ./parameters.ertparam

Expand Down

0 comments on commit 85473c2

Please sign in to comment.