Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify callbacks #1121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Simplify callbacks #1121

wants to merge 1 commit into from

Conversation

Sbozzolo
Copy link
Member

This commit removes most of the callback infrastructure in ClimaCoupler in favor of a simpler one that leverages what we already use in other packages. The current "schedule" system is the one from ClimaDiagnostics, but the plan is to move it to ClimaUtilities as part of the work towards the integer time.

Using the schedule system from ClimaDiagnostics eliminated the need for keeping track of the first day of the month.

I also updated the checkpointing callbacks so that they can run with frequencies that are smaller than one hour.

Copy link
Member

@juliasloan25 juliasloan25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you! Have you verified that this works as expected? E.g. that the checkpoints in run_amip.jl are done as expected?

NEWS.md Outdated Show resolved Hide resolved
config/amip_configs/amip.yml Outdated Show resolved Hide resolved
experiments/ClimaEarth/cli_options.jl Outdated Show resolved Hide resolved
src/TimeManager.jl Outdated Show resolved Hide resolved
src/TimeManager.jl Outdated Show resolved Hide resolved
src/TimeManager.jl Show resolved Hide resolved
@Sbozzolo Sbozzolo force-pushed the gb/callbacks branch 4 times, most recently from 0c8ea8a to d08ab62 Compare December 12, 2024 23:31
This commit removes most of the callback infrastructure in
`ClimaCoupler` in favor of a simpler one that leverages what we already
use in other packages. The current "schedule" system is the one from
`ClimaDiagnostics`, but the plan is to move it to `ClimaUtilities` as
part of the work towards the integer time.

Using the schedule system from `ClimaDiagnostics` eliminated the need
for keeping track of the first day of the month.

I also updated the checkpointing callbacks so that they can run with
frequencies that are smaller than one hour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants