-
Notifications
You must be signed in to change notification settings - Fork 10
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
Paper plots #565
Paper plots #565
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I had a few comments, but I think it's good to merge
S_l_sfc = p.soil.sfc_scratch | ||
ClimaLand.Domains.linear_interpolation_to_surface!(S_l_sfc, S_l, cds.z) | ||
θ_l_sfc = @. S_l_sfc * (ν - θ_r) + θ_r | ||
θ_i_sfc = ClimaLand.Domains.top_center_to_surface(Y.soil.θ_i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can change this to use linear_interpolation_to_surface
now too, since we know that function isn't allocating a new field. Or we could have a separate PR to go through and replace top_center_to_surface
with linear_interpolation_to_surface!
throughout the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change it here, and then open an issue for the other ones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh wait. it will be a different issue. because we are in the same function, but we only have one allocated scratch spot to hold the values (instead of alllocating), we cant reuse it in the same function. I think we need multiple surface scratch fields...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noted here: #615
Purpose
To-do
Content