From 5f3cda40a6afd1975f65dc7b2e737759e9487279 Mon Sep 17 00:00:00 2001 From: LenkaNovak Date: Thu, 2 Nov 2023 15:25:22 -0700 Subject: [PATCH] revs --- Project.toml | 2 +- src/TimeManager.jl | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 51ae77e025..761dcec110 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/src/TimeManager.jl b/src/TimeManager.jl index 3418c821bf..876b115bda 100644 --- a/src/TimeManager.jl +++ b/src/TimeManager.jl @@ -9,6 +9,9 @@ module TimeManager using ..Interfacer using Dates +using DocStringExtensions +const DSE = DocStringExtensions + export current_date, strdate_to_datetime, datetime_to_strdate, @@ -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 @@ -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