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

ensure full spatial inputs to temporal filters are always available from catalog #53

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/fabm.F90
Original file line number Diff line number Diff line change
@@ -558,6 +558,7 @@ subroutine set_domain(self _POSTARG_LOCATION_, seconds_per_time_unit)
select type (expression)
class is (type_interior_temporal_mean)
! Moving average of interior variable
call self%finalize_outputs_job%request_variable(expression%link%target, store=.true.)
expression%in = expression%link%target%catalog_index
expression%period = expression%period / seconds_per_time_unit
allocate(expression%history(_PREARG_LOCATION_ expression%n + 1))
@@ -570,6 +571,7 @@ subroutine set_domain(self _POSTARG_LOCATION_, seconds_per_time_unit)
call self%link_interior_data(expression%output_name, expression%mean)
class is (type_horizontal_temporal_mean)
! Moving average of horizontal variable
call self%finalize_outputs_job%request_variable(expression%link%target, store=.true.)
expression%in = expression%link%target%catalog_index
expression%period = expression%period / seconds_per_time_unit
allocate(expression%history(_PREARG_HORIZONTAL_LOCATION_ expression%n + 1))
@@ -582,6 +584,7 @@ subroutine set_domain(self _POSTARG_LOCATION_, seconds_per_time_unit)
call self%link_horizontal_data(expression%output_name, expression%mean)
class is (type_horizontal_temporal_maximum)
! Moving maximum of horizontal variable
call self%finalize_outputs_job%request_variable(expression%link%target, store=.true.)
expression%in = expression%link%target%catalog_index
expression%period = expression%period / seconds_per_time_unit
allocate(expression%history(_PREARG_HORIZONTAL_LOCATION_ expression%n))