File tree Expand file tree Collapse file tree 7 files changed +16
-6
lines changed Expand file tree Collapse file tree 7 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ checkpoint_cb = CallbackManager.HourlyCallback(
532
532
) # 20 days
533
533
update_firstdayofmonth!_cb = CallbackManager. MonthlyCallback (
534
534
dt = FT (1 ),
535
- func = CallbackManager . update_firstdayofmonth!,
535
+ func = Interfacer . update_firstdayofmonth!,
536
536
ref_date = [dates. first_day_of_month[1 ]],
537
537
active = true ,
538
538
)
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ checkpoint_cb = CallbackManager.HourlyCallback(
225
225
) # 20 days
226
226
update_firstdayofmonth!_cb = CallbackManager. MonthlyCallback (
227
227
dt = FT (1 ),
228
- func = CallbackManager . update_firstdayofmonth!,
228
+ func = Interfacer . update_firstdayofmonth!,
229
229
ref_date = [dates. first_day_of_month[1 ]],
230
230
active = true ,
231
231
)
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ checkpoint_cb = CallbackManager.HourlyCallback(
246
246
) # 20 days
247
247
update_firstdayofmonth!_cb = CallbackManager. MonthlyCallback (
248
248
dt = FT (1 ),
249
- func = CallbackManager . update_firstdayofmonth!,
249
+ func = Interfacer . update_firstdayofmonth!,
250
250
ref_date = [dates. first_day_of_month[1 ]],
251
251
active = true ,
252
252
)
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ checkpoint_cb = CallbackManager.HourlyCallback(
292
292
) # 20 days
293
293
update_firstdayofmonth!_cb = CallbackManager. MonthlyCallback (
294
294
dt = FT (1 ),
295
- func = CallbackManager . update_firstdayofmonth!,
295
+ func = Interfacer . update_firstdayofmonth!,
296
296
ref_date = [dates. first_day_of_month[1 ]],
297
297
active = true ,
298
298
)
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ checkpoint_cb = CallbackManager.HourlyCallback(
187
187
) # 20 days TODO : not GPU friendly
188
188
update_firstdayofmonth!_cb = CallbackManager. MonthlyCallback (
189
189
dt = FT (1 ),
190
- func = CallbackManager . update_firstdayofmonth!,
190
+ func = Interfacer . update_firstdayofmonth!,
191
191
ref_date = [dates. first_day_of_month[1 ]],
192
192
active = true ,
193
193
)
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ checkpoint_cb = CallbackManager.HourlyCallback(
232
232
)
233
233
update_firstdayofmonth!_cb = CallbackManager. MonthlyCallback (
234
234
dt = FT (1 ),
235
- func = CallbackManager . update_firstdayofmonth!,
235
+ func = Interfacer . update_firstdayofmonth!,
236
236
ref_date = [dates. first_day_of_month[1 ]],
237
237
active = true ,
238
238
)
Original file line number Diff line number Diff line change @@ -96,6 +96,16 @@ Return the model date at the current timestep.
96
96
"""
97
97
current_date (cs:: CoupledSimulation , t) = cs. dates. date0[1 ] + Dates. Second (t)
98
98
99
+ """
100
+ update_firstdayofmonth!(cs::Interfacer.CoupledSimulation, _)
101
+
102
+ This function updates the first of the month reference date.
103
+ """
104
+ function update_firstdayofmonth! (cs, _)
105
+ cs. dates. first_day_of_month[1 ] = cs. dates. first_day_of_month[1 ] + Dates. Month (1 )
106
+ @info (" update_firstdayofmonth! at $(cs. dates. date) " )
107
+ end
108
+
99
109
"""
100
110
ComponentModelSimulation
101
111
You can’t perform that action at this time.
0 commit comments