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

Part of surface fields are missing in RESTART files for RRFS cases #1655

Closed
hu5970 opened this issue Mar 14, 2023 · 6 comments
Closed

Part of surface fields are missing in RESTART files for RRFS cases #1655

hu5970 opened this issue Mar 14, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@hu5970
Copy link

hu5970 commented Mar 14, 2023

Description

We are testing the develop branch with RRFS cycles for on-going code merging efforts. We found that the part of the surface fields are filled with missing values in the restart file when using the develop branch. This will crash the following-up warm start runs.

Here are list of LSM variables with missing values in the RESTART sfc_data.nc:

clw_surf_land
cls_surf_ice
qwv_surf_land
qwv_surf_ice
sfcalb_land
sfcalb_land_bck
sfcalb_ice
tsnow_land
tsnow_ice
zorll
zorli

Something wrong with the develop branch when writing restart surface files. We are using RUCLSM.

@hu5970 hu5970 added the bug Something isn't working label Mar 14, 2023
@junwang-noaa
Copy link
Collaborator

@yangfanglin @ligiabernardet @MatthewPyle-NOAA Can we ask RUC LSM developers to take a look? Thanks

@tanyasmirnova
Copy link
Contributor

tanyasmirnova commented Mar 14, 2023

The problem is in the restart_write in FV3GFS_io.F90. The code that is not working correctly is:
if (Model%lsm == Model%lsm_ruc) then
!--- Extra RUC variables
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%wetness)
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%clw_surf_land)
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%clw_surf_ice)
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%qwv_surf_land)
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%qwv_surf_ice)
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%tsnow_land)
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%tsnow_ice)
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%snowfallac_land)
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%snowfallac_ice)
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%sfalb_lnd)
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%sfalb_lnd_bck)
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%sfalb_ice)
if (Model%rdlai) then
call copy_from_GFS_Data(ii1,jj1,isc,jsc,nt,sfc_var2,Sfcprop(nb)%xlaixy)
endif
....
Similar code in RRFS_dev branch looks like:
if (Model%lsm == Model%lsm_ruc) then
!--- Extra RUC variables
sfc_var2(i,j,nvar2m+19) = Sfcprop(nb)%wetness(ix)
sfc_var2(i,j,nvar2m+20) = Sfcprop(nb)%clw_surf_land(ix)
sfc_var2(i,j,nvar2m+21) = Sfcprop(nb)%clw_surf_ice(ix)
sfc_var2(i,j,nvar2m+22) = Sfcprop(nb)%qwv_surf_land(ix)
sfc_var2(i,j,nvar2m+23) = Sfcprop(nb)%qwv_surf_ice(ix)
sfc_var2(i,j,nvar2m+24) = Sfcprop(nb)%tsnow_land(ix)
sfc_var2(i,j,nvar2m+25) = Sfcprop(nb)%tsnow_ice(ix)
sfc_var2(i,j,nvar2m+26) = Sfcprop(nb)%snowfallac_land(ix)
sfc_var2(i,j,nvar2m+27) = Sfcprop(nb)%snowfallac_ice(ix)
sfc_var2(i,j,nvar2m+28) = Sfcprop(nb)%sfalb_lnd(ix)
sfc_var2(i,j,nvar2m+29) = Sfcprop(nb)%sfalb_lnd_bck(ix)
sfc_var2(i,j,nvar2m+30) = Sfcprop(nb)%sfalb_ice(ix)
if (Model%rdlai) then
sfc_var2(i,j,nvar2m+31) = Sfcprop(nb)%xlaixy(ix)
endif
This code works fine in RRFS.
....
It should be investigated why the I/O in ufs community code does not work properly with RUC LSM.

@DeniseWorthen
Copy link
Collaborator

What is the status of this issue?

@MatthewPyle-NOAA
Copy link
Collaborator

What is the status of this issue?

I think this was addressed within #1646, but would be good to get confirmation from @tanyasmirnova and/or @SamuelTrahanNOAA

@tanyasmirnova
Copy link
Contributor

Yes, I confirm that this was addressed in #1646.

@DeniseWorthen
Copy link
Collaborator

@tanyasmirnova Thanks for confirming. I will close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants