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

Remove nine 3D arrays from CLM Lake model #113

Merged

Conversation

SamuelTrahanNOAA
Copy link
Collaborator

@SamuelTrahanNOAA SamuelTrahanNOAA commented Sep 27, 2023

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.

@Qingfu-Liu
Copy link
Collaborator

@SamuelTrahanNOAA 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

@SamuelTrahanNOAA
Copy link
Collaborator Author

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.

@Qingfu-Liu
Copy link
Collaborator

Qingfu-Liu commented Sep 28, 2023 via email

grantfirl added a commit that referenced this pull request Oct 3, 2023
Fixes to allow FV3_HRRR_c3 to run with gnu debug plus PR #113, #106, and #103
@grantfirl grantfirl merged commit e0a949d into ufs-community:ufs/dev Oct 3, 2023
3 checks passed
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.

CLM Lake restarts nine 3D fields that are constant
5 participants