Skip to content

Commit

Permalink
Updated for test purpose test_full.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvarlia committed Nov 24, 2023
1 parent 6561b17 commit 3d3c615
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
19 changes: 9 additions & 10 deletions tests/jobs/localisation/example_case/sim_field_local.ert
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
DEFINE <USER> $USER
DEFINE <SCRATCH> /scratch/fmu
DEFINE <CASE_DIR> sim_field_local_A
DEFINE <ENSEMBLE_SEED_FILE> randomseeds.txt
DEFINE <TEST_CONFIG> <CONFIG_PATH>/example_test_config_A.yml
Expand All @@ -10,7 +9,6 @@ INSTALL_JOB SIM_FIELD scripts/FM_SIM_FIELD

DEFINE <OBS_FILE> <CONFIG_PATH>/observations/observations.obs
OBS_CONFIG <OBS_FILE>
TIME_MAP time_map.txt

JOBNAME sim_fields_<IENS>

Expand All @@ -19,12 +17,13 @@ NUM_REALIZATIONS 10 -- Set number of realizations to run
MAX_RUNTIME 18000 -- Set the maximum allowed run time (in seconds)
MIN_REALIZATIONS 1 -- Success criteria
MAX_SUBMIT 1 -- How many times should the queue system retry a simulation.
QUEUE_OPTION LSF MAX_RUNNING 100 -- Choke the number of simultaneous run
QUEUE_OPTION LSF LSF_QUEUE mr -- Assign LSF cluster queue to use

RUNPATH <SCRATCH>/<USER>/<CASE_DIR>/realization-<IENS>/iter-<ITER>
-- QUEUE_OPTION LSF MAX_RUNNING 100 -- Choke the number of simultaneous run
-- QUEUE_OPTION LSF LSF_QUEUE mr -- Assign LSF cluster queue to use
QUEUE_SYSTEM LOCAL
QUEUE_OPTION LOCAL MAX_RUNNING 10
RANDOM_SEED 123456 -- ERT seed value

RUNPATH simulations/<CASE_DIR>/realization-<IENS>/iter-<ITER>
ENSPATH output/<CASE_DIR>/storage -- Storage of internal ert data
UPDATE_LOG_PATH output/<CASE_DIR>/update_log -- Info of active and inactive data points
RUNPATH_FILE output/<CASE_DIR>/runpath_file -- List of runpaths
Expand All @@ -46,12 +45,12 @@ FORWARD_MODEL MAKE_DIRECTORY(<DIRECTORY>=<ITER>)
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/<ENSEMBLE_SEED_FILE>, <TO>=<RUNPATH>/<ENSEMBLE_SEED_FILE>)
-- For QC purpose only
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/init_files/ObsField.roff, <TO>=<RUNPATH>/init_files/ObsField.roff)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID.EGRID, <LINKNAME>=<RUNPATH>/GRID.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/UpscaleGrid.EGRID, <LINKNAME>=<RUNPATH>/UpscaleGrid.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID_STANDARD.EGRID, <LINKNAME>=<RUNPATH>/GRID_STANDARD.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID_STANDARD_UPSCALED.EGRID, <LINKNAME>=<RUNPATH>/GRID_STANDARD_UPSCALED.EGRID)

-- The main forward model simulating gaussian field with trend, and upscale
FORWARD_MODEL SIM_FIELD(<ITERATION>=<ITER>, <REALNUMBER>=<IENS>, <TEST_CONFIG>=<TEST_CONFIG>)
FORWARD_MODEL SIM_FIELD(<ITERATION>=<ITER>, <REALNUMBER>=<IENS>, <TEST_CONFIG>=<TEST_CONFIG>, <CONFIG_PATH>=<CONFIG_PATH>)

GRID <CONFIG_PATH>/GRID.EGRID -- Necessary for AHM using field parameters
GRID <CONFIG_PATH>/GRID_STANDARD.EGRID -- Necessary for AHM using field parameters

FIELD FIELDPAR PARAMETER FieldParam.roff INIT_FILES:init_files/FieldParam.roff MIN:-5.0 MAX:5.0 FORWARD_INIT:True
6 changes: 3 additions & 3 deletions tests/jobs/localisation/example_case/test_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,14 +323,14 @@ def test_that_localization_works_with_different_settings(

parser = ArgumentParser(prog="test_main")

ert_config_file = "sim_field_local.ert"
ert_config_file = "sim_field_local_case_A.ert"
shutil.copy(Path(__file__).parent / ert_config_file, ert_config_file)
shutil.copy(
Path(__file__).parent / "FieldParam_real5_iter0_A_local.grdecl",
Path(__file__).parent / "init_files" / "FieldParam_real5_iter0_A_local.grdecl",
"FieldParam_real5_iter0_A_local.grdecl",
)
shutil.copy(
Path(__file__).parent / "FieldParam_real5_iter1_A_local.grdecl",
Path(__file__).parent / "init_files" / "FieldParam_real5_iter1_A_local.grdecl",
"FieldParam_real5_iter1_A_local.grdecl",
)
shutil.copy(Path(__file__).parent / "localisation.wf", "localisation.wf")
Expand Down

0 comments on commit 3d3c615

Please sign in to comment.