Skip to content

Commit

Permalink
Merge pull request #5 from zhihong-tan/znt_f3b1r1
Browse files Browse the repository at this point in the history
Passing additional surface variables into the atmospheric model
  • Loading branch information
thomas-robinson authored Nov 14, 2023
2 parents 7f34efa + b9e2cc7 commit ff2cce7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions atmos_model.F90
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ module atmos_model_mod
real, dimension(:,:), pointer :: q_star =>NULL() ! moisture scale
real, dimension(:,:), pointer :: shflx =>null() ! sensible heat flux
real, dimension(:,:), pointer :: lhflx =>null() ! latent heat flux
real, dimension(:,:), pointer :: wind =>null() ! surface wind
real, dimension(:,:), pointer :: thv_atm =>null() ! surface air theta_v
real, dimension(:,:), pointer :: thv_surf =>null() ! surface theta_v
real, dimension(:,:), pointer :: rough_mom =>NULL() ! surface roughness (used for momentum)
real, dimension(:,:,:), pointer :: data =>NULL() !collective field for "named" fields above
real, dimension(:,:), pointer :: frac_open_sea =>null() ! non-seaice fraction (%)
Expand Down Expand Up @@ -737,6 +740,15 @@ subroutine lnd_ice_atm_bnd_type_chksum(id, timestep, bnd_type)
write(outunit,100) 'lnd_ice_atm_bnd_type%u_star ',mpp_chksum(bnd_type%u_star )
write(outunit,100) 'lnd_ice_atm_bnd_type%b_star ',mpp_chksum(bnd_type%b_star )
write(outunit,100) 'lnd_ice_atm_bnd_type%q_star ',mpp_chksum(bnd_type%q_star )
#ifndef use_AM3_physics
if(associated(bnd_type%shflx)) &
write(outunit,100) 'lnd_ice_atm_bnd_type%shflx ',mpp_chksum(bnd_type%shflx )!miz
if(associated(bnd_type%lhflx)) &
write(outunit,100) 'lnd_ice_atm_bnd_type%lhflx ',mpp_chksum(bnd_type%lhflx )!miz
#endif
write(outunit,100) 'lnd_ice_atm_bnd_type%wind ',mpp_chksum(bnd_type%wind )
write(outunit,100) 'lnd_ice_atm_bnd_type%thv_atm ',mpp_chksum(bnd_type%thv_atm )
write(outunit,100) 'lnd_ice_atm_bnd_type%thv_surf ',mpp_chksum(bnd_type%thv_surf )
write(outunit,100) 'lnd_ice_atm_bnd_type%rough_mom ',mpp_chksum(bnd_type%rough_mom )
! write(outunit,100) 'lnd_ice_atm_bnd_type%data ',mpp_chksum(bnd_type%data )

Expand Down

0 comments on commit ff2cce7

Please sign in to comment.