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 copy to compute! functions for radiation #3365

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Add copy to compute! functions for radiation #3365

merged 1 commit into from
Oct 8, 2024

Conversation

Sbozzolo
Copy link
Member

@Sbozzolo Sbozzolo commented Oct 7, 2024

The radiation diagnostics were returning references to objects, leading to conflicts when multiple diagnostics were added at the same time.

This commit ensures that all the radiation diagnostics return a new object.

CliMA/ClimaDiagnostics.jl#88 fixes the problem direclty in ClimaDiagnostics, but I think it is still worth fixing in atmos, too, so that we can be compatible with previous versions of ClimaDiagnostics and more uniform with what we are doing with all the other diagnostics

Copy link
Member

@szy21 szy21 left a comment

Choose a reason for hiding this comment

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

Thanks!

The radiation diagnostics were returning references to objects, leading
to conflicts when multiple diagnostics were added at the same time.

This commit ensures that all the radiation diagnostics return a new
object.

CliMA/ClimaDiagnostics.jl#88 fixes the problem
direclty in ClimaDiagnostics, but I think it is still worth fixing in
atmos, too, so that we can be compatible with previous versions of
ClimaDiagnostics and more uniform with what we are doing with all the
other diagnostics
@Sbozzolo Sbozzolo added this pull request to the merge queue Oct 7, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 8, 2024
@Sbozzolo Sbozzolo added this pull request to the merge queue Oct 8, 2024
Merged via the queue into main with commit a905ac9 Oct 8, 2024
15 of 16 checks passed
@Sbozzolo Sbozzolo deleted the gb/fix branch October 8, 2024 01:06
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