@@ -211,10 +211,11 @@ subroutine horizontal_temporal_maximum_initialize(self, configunit)
211211 subroutine interior_temporal_mean_set_data (self , store , seconds_per_time_unit )
212212 class (type_interior_temporal_mean), intent (inout ) :: self
213213 type (type_store), target :: store
214- real (rke), intent (in ) :: seconds_per_time_unit
214+ real (rke), optional , intent (in ) :: seconds_per_time_unit
215215
216216 integer :: ibin
217217
218+ if (.not. present (seconds_per_time_unit)) call self% fatal_error(' interior_temporal_mean_set_data' , ' host did not provide time information.' )
218219 self% source% icatalog = self% source% link% target % catalog_index
219220 self% window = self% window / seconds_per_time_unit
220221 do ibin = 1 , size (self% history)
@@ -344,10 +345,11 @@ subroutine interior_temporal_mean_update(self, catalog _POSTARG_LOCATION_RANGE_,
344345 subroutine horizontal_temporal_mean_set_data (self , store , seconds_per_time_unit )
345346 class (type_horizontal_temporal_mean), intent (inout ) :: self
346347 type (type_store), target :: store
347- real (rke), intent (in ) :: seconds_per_time_unit
348+ real (rke), optional , intent (in ) :: seconds_per_time_unit
348349
349350 integer :: ibin
350351
352+ if (.not. present (seconds_per_time_unit)) call self% fatal_error(' horizontal_temporal_mean_set_data' , ' host did not provide time information.' )
351353 self% source% icatalog = self% source% link% target % catalog_index
352354 self% window = self% window / seconds_per_time_unit
353355 do ibin = 1 , size (self% history)
@@ -477,10 +479,11 @@ end subroutine horizontal_temporal_mean_update
477479 subroutine horizontal_temporal_maximum_set_data (self , store , seconds_per_time_unit )
478480 class (type_horizontal_temporal_maximum), intent (inout ) :: self
479481 type (type_store), target :: store
480- real (rke), intent (in ) :: seconds_per_time_unit
482+ real (rke), optional , intent (in ) :: seconds_per_time_unit
481483
482484 integer :: ibin
483485
486+ if (.not. present (seconds_per_time_unit)) call self% fatal_error(' horizontal_temporal_maximum_set_data' , ' host did not provide time information.' )
484487 self% source% icatalog = self% source% link% target % catalog_index
485488 self% window = self% window / seconds_per_time_unit
486489 do ibin = 1 , size (self% history)
0 commit comments