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

Update HEMCO version to 3.10.0 #65

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion HEMCO
Submodule HEMCO updated 168 files
20 changes: 18 additions & 2 deletions src/nuopc/cap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,8 @@ subroutine hco_set_grid( HcoState, RC )
character(len=255) :: LOC
character(len= 1) :: COL
character(len=255) :: MyGridFile, ThisLoc
character(len=4095) :: DUM, ErrMsg, Msg
character(len=5500) :: DUM
character(len=255) :: ErrMsg, Msg

!=================================================================
! SET_GRID begins here
Expand Down Expand Up @@ -1710,7 +1711,7 @@ subroutine hco_ext_set_fields ( HcoState, ExtState, RC )
end if
end if

!%%%%% Air and skin temperature %%%%%
!%%%%% Air temperature %%%%%
if ( ExtState%T2M%DoUse ) then
Name = 'T2M'
call ExtDat_Set( HcoState, ExtState%T2M, &
Expand All @@ -1724,6 +1725,7 @@ subroutine hco_ext_set_fields ( HcoState, ExtState, RC )
end if
end if

!%%%%% Skin temperature %%%%%
if ( ExtState%TSKIN%DoUse ) then
Name = 'TS'
call ExtDat_Set( HcoState, ExtState%TSKIN, &
Expand All @@ -1737,6 +1739,20 @@ subroutine hco_ext_set_fields ( HcoState, ExtState, RC )
end if
end if

!%%%%% Soil temperature %%%%%
IF ( ExtState%TSOIL1%DoUse ) THEN
Name = 'TSOIL1'
CALL ExtDat_Set( HcoState, ExtState%TSOIL1, &
trim( Name ), RC, FIRST=FIRST )
if ( RC /= HCO_SUCCESS ) then
ErrMsg = 'Could not find quantity "' // trim( Name ) // &
'" for the HEMCO standalone simulation!'
call HCO_Error( HcoConfig%Err, ErrMsg, RC, ThisLoc )
call HCO_Leave( HcoState%Config%Err, RC )
return
end if
end if

!%%%%% Soil moisture %%%%%
if ( ExtState%GWETROOT%DoUse ) then
Name = 'GWETROOT'
Expand Down