Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #3096 - propagate time dependent changes #3119

Merged
merged 12 commits into from
Oct 28, 2024
Prev Previous commit
Next Next commit
Fixed issue with non-present optional ignore.
- Introduced local `ignore_` that always has a value.
  • Loading branch information
tclune committed Oct 27, 2024
commit 51de5815daad24f750359a13ba3b53ec6b25313e
12 changes: 8 additions & 4 deletions field_utils/FieldDelta.F90
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,14 @@ subroutine update_field(this, field, ignore, rc)
integer, optional, intent(out) :: rc

integer :: status
darianboggs marked this conversation as resolved.
Show resolved Hide resolved
character(:), allocatable :: ignore_

ignore_ = ''
if (present(ignore)) ignore_ = ignore

call this%reallocate_field(field, ignore=ignore, _RC)
call this%reallocate_field(field, ignore=ignore_, _RC)

call update_num_levels(this%num_levels, field, ignore=ignore, _RC)
call update_num_levels(this%num_levels, field, ignore=ignore_, _RC)
call update_units(this%units, field, ignore=ignore, _RC)

_RETURN(_SUCCESS)
Expand All @@ -228,7 +232,7 @@ subroutine update_field(this, field, ignore, rc)
subroutine update_num_levels(num_levels, field, ignore, rc)
integer, optional, intent(in) :: num_levels
type(ESMF_Field), intent(inout) :: field
character(*), intent(in), optional :: ignore
character(*), intent(in) :: ignore
integer, optional, intent(out) :: rc

integer :: status
Expand All @@ -244,7 +248,7 @@ end subroutine update_num_levels
subroutine update_units(units, field, ignore, rc)
character(*), optional, intent(in) :: units
type(ESMF_Field), intent(inout) :: field
character(*), intent(in), optional :: ignore
character(*), intent(in) :: ignore
integer, optional, intent(out) :: rc

integer :: status
Expand Down
Loading