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

Flake.v6 #25

Closed

Conversation

YihuaWu-NOAA
Copy link

No description provided.

@@ -137,9 +161,11 @@ subroutine GFS_surface_composites_pre_run (im, flag_init, flag_restart, lkm, fra
else

do i = 1, IM
oceanfrac(i) = one - landfrac(i) - lakefrac(i)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In some routines they assume one=oceanfrac + landfrac, so lake is either part of ocean or land. For example, in atmos_model.F90

!$omp parallel do default(shared) private(i,j,nb,ix)
do j=jsc,jec
do i=isc,iec
nb = Atm_block%blkno(i,j)
ix = Atm_block%ixp(i,j)
! use land sea mask: land:1, ocean:0
lsmask(i,j) = floor(one + epsln - GFS_data(nb)%SfcProp%oceanfrac(ix))
enddo
enddo

So we need to double-check if lakefrac+oceanfrac+landfrac=1 in the oro data, otherwise there will be some mismatches for land-sea mask, which will cause the model crash.

@YihuaWu-NOAA
Copy link
Author

YihuaWu-NOAA commented Apr 11, 2022 via email

@HelinWei-NOAA
Copy link
Owner

So oceanfrac+lakefrac+landfrac is set to 1 in the oro data? How about those oro data which don't include lake fraction and lake depth?

@YihuaWu-NOAA
Copy link
Author

YihuaWu-NOAA commented Apr 11, 2022 via email

@HelinWei-NOAA
Copy link
Owner

no matter if flake is on or not. We just want to confirm that in the oro dataset with lakefrac, landfrac+oceanfrac+lakefrac=1, for the oro data without lakefrac, landfrac+oceanfrac=1. @shansun6

@ShanSunNOAA
Copy link

In the oro_data, there are 2 mask fields, "landfrac" and "lakefrac". There is no oceanfrac in oro_data to save disk space, since the sum of these three are 100%.

In atmos_model.F90, one=oceanfrac + landfrac is used, simply because 'lsmask' is a "land-sea" mask for the air-sea interaction with the ocean model.

Let me know if I am not clear.

@HelinWei-NOAA
Copy link
Owner

will have a new PR to have new version of flake

HelinWei-NOAA pushed a commit that referenced this pull request Dec 8, 2022
using NoahMP tiled tq2m with the bug fix
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.

4 participants