Skip to content

Commit 56e6e55

Browse files
committed
Refactor AveragedTimeInterval struct to support generic types for interval and first actuation time
1 parent 6ea30f5 commit 56e6e55

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/OutputWriters/windowed_time_average.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import Oceananigans.Fields: location, indices, set!
1313
1414
Container for parameters that configure and handle time-averaged output.
1515
"""
16-
mutable struct AveragedTimeInterval <: AbstractSchedule
17-
interval :: Float64
18-
window :: Float64
16+
mutable struct AveragedTimeInterval{I, T} <: AbstractSchedule
17+
interval :: I
18+
window :: I
1919
stride :: Int
20-
first_actuation_time :: Float64
20+
first_actuation_time :: T
2121
actuations :: Int
2222
collecting :: Bool
2323
end

0 commit comments

Comments
 (0)