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

Add optional toml_files kwarg to the BucketSimulation func #1217

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

Conversation

nefrathenrici
Copy link
Member

This PR adds a toml_files optional keyword argument to BucketSimulation. If toml_files is not empty, it will be used to construct the BucketModelParameters. If it is empty (the default), behavior is unchanged.

This PR modifies setup_and_run and get_atmos_args to pass atmos_config_dict["toml"] to BucketSimulation.

These changes will allow us to pass a calibration parameter file to the BucketSimulation in order to calibrate bucket parameters. Closes #1216

@@ -326,6 +326,7 @@ function setup_and_run(config_dict::AbstractDict)
energy_check = energy_check,
surface_elevation,
use_land_diagnostics,
toml_files,
Copy link
Member

Choose a reason for hiding this comment

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

It seems a little weird to me that the toml_files we pass to the bucket come from get_atmos_args. Can we either specify individual tomls for atmos and for land, or if we want them to be the same for both can we specify the tomls at the coupler level and pass them to both atmos and land?

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree, this is pretty hacky. Ideally we'd have one list of files that the coupler takes in and passes to both atmos and land but I wasn't sure how to accomplish that cleanly.

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.

BucketModelParameters in ClimaEarth are hardcoded
2 participants