Skip to content

Conversation

juliasloan25
Copy link
Member

@juliasloan25 juliasloan25 commented Jul 15, 2025

Purpose

Remove the bucket get_new_cache function, and instead access the cached fields for total energy and water directly, which were added in CliMA/ClimaLand.jl#1104.

closes #1261

@juliasloan25 juliasloan25 requested review from imreddyTeja and removed request for imreddyTeja July 15, 2025 18:51
@juliasloan25 juliasloan25 force-pushed the js/cache branch 2 times, most recently from 6cfb030 to e5cc24d Compare July 15, 2025 21:38
Copy link
Member

@imreddyTeja imreddyTeja 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 to me.

I don't think this an issue, but why did we choose to update total_water with volume per area in ClimaLand, rather than doing the multiplication by ρ_cloud_liq there?

@juliasloan25
Copy link
Member Author

Looks good to me.

I don't think this an issue, but why did we choose to update total_water with volume per area in ClimaLand, rather than doing the multiplication by ρ_cloud_liq there?

I'm not sure, but I think it's because we always store water as a volumetric fraction in ClimaLand so we're keeping it consistent there and we only convert to kg/m3 in the coupler where it's used that way.

@juliasloan25 juliasloan25 enabled auto-merge July 16, 2025 00:50
@juliasloan25 juliasloan25 merged commit a5fe9c3 into main Jul 16, 2025
14 checks passed
@juliasloan25 juliasloan25 deleted the js/cache branch July 16, 2025 02:30
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.

remove get_new_cache function for Bucket
2 participants