Skip to content

Commit

Permalink
fix(sourcedata.py::setup_array): for LGR inset models with default_so…
Browse files Browse the repository at this point in the history
…urce_data=True, don't copy idomain from parent (which will result in all inactive cells in the inset model).
  • Loading branch information
aleaf committed Jan 6, 2025
1 parent 077972d commit 818c192
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mfsetup/sourcedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,8 @@ def setup_array(model, package, var, data=None,
# if default_source_data: True in parent model options
# default to source_data from parent model
cfg = model.cfg[package].get('source_data')
if cfg is None and model.cfg['parent'].get('default_source_data'):
if cfg is None and model.cfg['parent'].get('default_source_data')\
and not (model._is_lgr and var == 'idomain'):
cfg = {var: 'from_parent'}

# data specified directly
Expand Down

0 comments on commit 818c192

Please sign in to comment.