Remove nine 3D arrays from CLM Lake model#113
Merged
grantfirl merged 3 commits intoOct 3, 2023
Conversation
This was referenced Sep 27, 2023
tanyasmirnova
approved these changes
Sep 28, 2023
Collaborator
|
@SamuelTrahanNOAA Can you double check line 554 in file physics/clm_lake.f90? |
Collaborator
Author
The "column" parameter is always 1, so the program never enters that loop. However, I fixed it anyway. |
Collaborator
|
@sam Trahan ***@***.***> Yes, you are right, the
column parameter c is always 1. Thanks
…On Thu, Sep 28, 2023 at 12:11 PM Samuel Trahan (NOAA contractor) < ***@***.***> wrote:
Can you double check line 554 in file physics/clm_lake.f90?
do c = 2,column
z_lake(c,:) = z_lake(1,:)
dz_lake(c,:) = z_lake(1,:) !line 554
enddo
The "column" parameter is always 1, so the program never enters that loop.
However, I fixed it anyway.
—
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGTS6UXR3PIY7Z33QKQVNT3X4WOR5ANCNFSM6AAAAAA5J7D7RU>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
dustinswales
approved these changes
Sep 28, 2023
Qingfu-Liu
approved these changes
Sep 28, 2023
grantfirl
approved these changes
Sep 29, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There are nine 3D arrays in CLM Lake that are constant. Seven of them are 2D arrays copied to all vertical levels. All are cheap to calculate.
This PR removes all nine arrays. When the numbers are needed, they're recalculated.
To do this, I had to add a 2D array: the lakedepth before correction.