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

reintegrate dev/ufs-weather-model #592

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions model/src/wmesmfmd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,34 @@ subroutine InitializeP1 ( gcomp, impState, expState, extClock, rc )
if (ESMF_LogFoundError(rc, PASSTHRU)) return
end if
end if

call NUOPC_CompAttributeGet(gcomp, name="mask_value_water", &
value=cvalue, isPresent=isPresent, isSet=isSet, rc=rc)
if (ESMF_LogFoundError(rc, PASSTHRU)) return
if (isPresent .and. isSet) then
maskvaluewater = ESMF_UtilString2Int(cvalue, rc=rc)
if (ESMF_LogFoundError(rc, PASSTHRU)) return
if (verbosity.gt.0) then
write(logmsg,*) maskvaluewater
call ESMF_LogWrite(trim(cname)//': mask_value_water = '// &
trim(logmsg), ESMF_LOGMSG_INFO, rc=rc)
if (ESMF_LogFoundError(rc, PASSTHRU)) return
end if
end if

call NUOPC_CompAttributeGet(gcomp, name="mask_value_land", &
value=cvalue, isPresent=isPresent, isSet=isSet, rc=rc)
if (ESMF_LogFoundError(rc, PASSTHRU)) return
if (isPresent .and. isSet) then
maskvalueland = ESMF_UtilString2Int(cvalue, rc=rc)
if (ESMF_LogFoundError(rc, PASSTHRU)) return
if (verbosity.gt.0) then
write(logmsg,*) maskvalueland
call ESMF_LogWrite(trim(cname)//': mask_value_land = '// &
trim(logmsg), ESMF_LOGMSG_INFO, rc=rc)
if (ESMF_LogFoundError(rc, PASSTHRU)) return
end if
end if
end if
!
! -------------------------------------------------------------------- /
Expand Down