Skip to content

Commit

Permalink
revs
Browse files Browse the repository at this point in the history
  • Loading branch information
LenkaNovak committed Nov 2, 2023
1 parent f25a50d commit 5f3cda4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Insolation = "0.6"
JLD2 = "0.4"
NCDatasets = "0.11, 0.12"
OrdinaryDiffEq = "5, 6"
Plots = "1"
Plots = "1.39.0"
SciMLBase = "1"
StaticArrays = "1"
SurfaceFluxes = "0.7"
Expand Down
11 changes: 11 additions & 0 deletions src/TimeManager.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module TimeManager
using ..Interfacer
using Dates

using DocStringExtensions
const DSE = DocStringExtensions

export current_date,
strdate_to_datetime,
datetime_to_strdate,
Expand Down Expand Up @@ -86,6 +89,10 @@ do_nothing(::Interfacer.CoupledSimulation, _) = nothing
HourlyCallback{FT}
This is a callback type that triggers at intervals of 1h or multiple hours.
# Fields
$(DSE.FIELDS)
"""
@kwdef struct HourlyCallback{FT} <: CouplerCallback
dt::FT = FT(1) # hours
Expand All @@ -99,6 +106,10 @@ end
MonthlyCallback{FT}
This is a callback type that triggers at intervals of 1 month or multiple months.
# Fields
$(DSE.FIELDS)
"""
@kwdef struct MonthlyCallback{FT} <: CouplerCallback
dt::FT = FT(1) # months
Expand Down

0 comments on commit 5f3cda4

Please sign in to comment.