Skip to content

Commit 85473c2

Browse files
committed
Add MISFIT_PREPROCESSOR workflow
1 parent 2250877 commit 85473c2

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/flownet/ert/_create_ert_setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,11 @@ def create_ert_setup( # pylint: disable=too-many-arguments
277277
with open(os.path.join(output_folder, "pipfreeze.output"), "w") as fh:
278278
subprocess.call(["pip", "freeze"], stdout=fh)
279279

280+
shutil.copyfile(
281+
_MODULE_FOLDER / ".." / "static" / "MISFIT_PREPROCESSOR_WORKFLOW",
282+
output_folder / "MISFIT_PREPROCESSOR_WORKFLOW",
283+
)
284+
280285
for section in ["RUNSPEC", "PROPS", "SOLUTION", "SCHEDULE"]:
281286
static_source_path = pathlib.Path(static_path) / f"{section}.inc"
282287
if static_source_path.is_file():
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MISFIT_PREPROCESSOR

src/flownet/templates/ahm_config.ert.jinja2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ LOAD_WORKFLOW_JOB ./SAVE_ITERATION_ANALYTICS_WORKFLOW_JOB
3030
LOAD_WORKFLOW SAVE_ITERATION_ANALYTICS_WORKFLOW
3131
HOOK_WORKFLOW SAVE_ITERATION_ANALYTICS_WORKFLOW POST_SIMULATION
3232
{%- endif %}
33+
LOAD_WORKFLOW MISFIT_PREPROCESSOR_WORKFLOW
34+
HOOK_WORKFLOW MISFIT_PREPROCESSOR_WORKFLOW PRE_FIRST_UPDATE
3335

3436
GEN_KW FLOWNET_PARAMETERS ./EMPTYFILE ./EMPTYFILE ./parameters.ertparam
3537

0 commit comments

Comments
 (0)