Skip to content

Remove nine 3D arrays from CLM Lake model#113

Merged
grantfirl merged 3 commits into
ufs-community:ufs/devfrom
SamuelTrahanNOAA:clm-lake-fewer-variables
Oct 3, 2023
Merged

Remove nine 3D arrays from CLM Lake model#113
grantfirl merged 3 commits into
ufs-community:ufs/devfrom
SamuelTrahanNOAA:clm-lake-fewer-variables

Conversation

@SamuelTrahanNOAA
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread physics/clm_lake.f90 Outdated
@SamuelTrahanNOAA
Copy link
Copy Markdown
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
Copy Markdown
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
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