Skip to content

Commit

Permalink
Update mask correctly based on results
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Fanebust Dregi authored and markusdregi committed Nov 12, 2018
1 parent 4395d14 commit 15f4e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/python/ert_gui/simulation/models/ensemble_smoother.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ def create_context(self, arguments, prior_context = None):
mask = arguments["active_realizations"]
else:
itr = 1
mask = prior_context.get_mask( )
sim_fs = prior_context.get_target_fs( )
target_fs = None
state = RealizationStateEnum.STATE_HAS_DATA | RealizationStateEnum.STATE_INITIALIZED
mask = sim_fs.getStateMap().createMask(state)

run_context = ErtRunContext.ensemble_smoother( sim_fs, target_fs, mask, runpath_fmt, jobname_fmt, subst_list, itr)
return run_context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def create_context(self, arguments, itr, prior_context = None, update = True):
if prior_context is None:
mask = arguments["active_realizations"]
else:
mask = prior_context.get_mask( )
state = RealizationStateEnum.STATE_HAS_DATA | RealizationStateEnum.STATE_INITIALIZED
mask = sim_fs.getStateMap().createMask(state)

run_context = ErtRunContext.ensemble_smoother( sim_fs, target_fs, mask, runpath_fmt, jobname_fmt, subst_list, itr)
return run_context

0 comments on commit 15f4e18

Please sign in to comment.