Skip to content

Commit 9b6fddd

Browse files
author
Dalei Hao
committed
add the output
2 parents 5ba3819 + e05e89d commit 9b6fddd

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

components/clm/src/biogeophys/EnergyFluxType.F90

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,11 @@ subroutine InitHistory(this, bounds)
300300
call hist_addfld1d (fname='BTRAN', units='unitless', &
301301
avgflag='A', long_name='transpiration beta factor', &
302302
ptr_patch=this%btran_patch, set_lake=spval, set_urb=spval)
303+
<<<<<<< HEAD
303304

305+
=======
306+
307+
>>>>>>> e05e89d9b3d048ea47aecc06c3ac4c18cfad7bd4
304308
!!! add output (pft-based SH and LH) by Dalei Hao 12/6/2020
305309
this%eflx_sh_tot_patch(begp:endp) = spval
306310
call hist_addfld1d (fname='SH_pft', units='W/m^2', &
@@ -313,6 +317,10 @@ subroutine InitHistory(this, bounds)
313317
ptr_patch=this%eflx_lh_tot_patch, default='inactive')
314318
!!! end
315319

320+
<<<<<<< HEAD
321+
=======
322+
323+
>>>>>>> e05e89d9b3d048ea47aecc06c3ac4c18cfad7bd4
316324
if (use_cn) then
317325
this%rresis_patch(begp:endp,:) = spval
318326
call hist_addfld2d (fname='RRESIS', units='proportion', type2d='levgrnd', &

components/clm/src/biogeophys/FrictionVelocityMod.F90

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,21 @@ subroutine FrictionVelocity(lbn, ubn, fn, filtern, &
111111
u10 => frictionvel_vars%u10_patch , & ! Output: [real(r8) (:) ] 10-m wind (m/s) (for dust model)
112112
u10_clm => frictionvel_vars%u10_clm_patch , & ! Output: [real(r8) (:) ] 10-m wind (m/s)
113113
va => frictionvel_vars%va_patch , & ! Output: [real(r8) (:) ] atmospheric wind speed plus convective velocity (m/s)
114+
<<<<<<< HEAD
114115
fv => frictionvel_vars%fv_patch , & ! Output: [real(r8) (:) ] friction velocity (m/s) (for dust model)
115116
!!! add by Dalei Hao
116117
zeta_patch => frictionvel_vars%zeta_patch , & ! Output: [real(r8) (:) ] atmospheric wind speed plus convective velocity (m/s)
117118
ustar_patch => frictionvel_vars%ustar_patch & ! Output: [real(r8) (:) ] friction velocity (m/s) (for dust model)
118119
!!!
119120
)
121+
=======
122+
fv => frictionvel_vars%fv_patch & ! Output: [real(r8) (:) ] friction velocity (m/s) (for dust model)
123+
!!! add by Dalei Hao
124+
zeta_patch => frictionvel_vars%zeta_patch , & ! Output: [real(r8) (:) ] atmospheric wind speed plus convective velocity (m/s)
125+
ustar_patch => frictionvel_vars%ustar_patch & ! Output: [real(r8) (:) ] friction velocity (m/s) (for dust model)
126+
!!!
127+
)
128+
>>>>>>> e05e89d9b3d048ea47aecc06c3ac4c18cfad7bd4
120129

121130
! Adjustment factors for unstable (moz < 0) or stable (moz > 0) conditions.
122131

@@ -391,8 +400,13 @@ subroutine FrictionVelocity(lbn, ubn, fn, filtern, &
391400
u10(n) = ur(n) - ustar(n)/vkc * (tmp4 - fm(n) + fm10)
392401
fv(n) = ustar(n)
393402
end if
403+
<<<<<<< HEAD
394404

395405
!!! add by Dalei Hao
406+
=======
407+
408+
!!! add by Dalei Hao
409+
>>>>>>> e05e89d9b3d048ea47aecc06c3ac4c18cfad7bd4
396410
if (present(landunit_index)) then
397411
do pp = pfti(n),pftf(n)
398412
zeta_patch(pp) = zeta(n)

components/clm/src/biogeophys/FrictionVelocityType.F90

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ subroutine InitAllocate(this, bounds)
109109
allocate(this%z0qg_col (begc:endc)) ; this%z0qg_col (:) = nan
110110
allocate(this%z0hg_col (begc:endc)) ; this%z0hg_col (:) = nan
111111

112+
<<<<<<< HEAD
112113

114+
=======
115+
>>>>>>> e05e89d9b3d048ea47aecc06c3ac4c18cfad7bd4
113116
!!! add by Dalei Hao
114117
allocate(this%zeta_patch (begp:endp)) ; this%zeta_patch (:) = nan
115118
allocate(this%ustar_patch (begp:endp)) ; this%ustar_patch (:) = nan
@@ -162,7 +165,11 @@ subroutine InitHistory(this, bounds)
162165
call hist_addfld1d (fname='U10', units='m/s', &
163166
avgflag='A', long_name='10-m wind', &
164167
ptr_patch=this%u10_clm_patch)
168+
<<<<<<< HEAD
165169

170+
=======
171+
172+
>>>>>>> e05e89d9b3d048ea47aecc06c3ac4c18cfad7bd4
166173
!!! add by Dalei hao
167174
this%zeta_patch(begp:endp) = spval
168175
call hist_addfld1d (fname='zeta_patch', units='unitless', &
@@ -174,12 +181,22 @@ subroutine InitHistory(this, bounds)
174181
avgflag='A', long_name='friction velocity [m/s]', &
175182
ptr_patch=this%ustar_patch, default='inactive')
176183

184+
<<<<<<< HEAD
177185
this%fv_patch(begp:endp) = spval
178186
call hist_addfld1d (fname='FV', units='m/s', &
187+
=======
188+
this%fv_patch(begp:endp) = spval
189+
call hist_addfld1d (fname='FV', units='m/s', &
190+
>>>>>>> e05e89d9b3d048ea47aecc06c3ac4c18cfad7bd4
179191
avgflag='A', long_name='friction velocity for dust model', &
180192
ptr_patch=this%fv_patch, default='inactive')
181193
!!! end
182194

195+
<<<<<<< HEAD
196+
=======
197+
198+
199+
>>>>>>> e05e89d9b3d048ea47aecc06c3ac4c18cfad7bd4
183200
if (use_cn) then
184201
this%u10_patch(begp:endp) = spval
185202
call hist_addfld1d (fname='U10_DUST', units='m/s', &

components/clm/src/data_types/TopounitDataType.F90

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,22 @@ subroutine init_top_as(this, begt, endt)
147147
call hist_addfld1d (fname='RH', units='%', &
148148
avgflag='A', long_name='atmospheric relative humidity', &
149149
ptr_gcell=this%rhbot, default='inactive')
150+
<<<<<<< HEAD
150151

152+
=======
153+
154+
>>>>>>> e05e89d9b3d048ea47aecc06c3ac4c18cfad7bd4
151155
!!! add by Dalei Hao
152156
this%rhobot(begt:endt) = spval
153157
call hist_addfld1d (fname='RHO', units='kg/m**3', &
154158
avgflag='A', long_name='air density at atmospheric forcing height', &
155159
ptr_gcell=this%rhobot, default='inactive')
156160
!!! end
157161

162+
<<<<<<< HEAD
163+
=======
164+
165+
>>>>>>> e05e89d9b3d048ea47aecc06c3ac4c18cfad7bd4
158166
this%windbot(begt:endt) = spval
159167
call hist_addfld1d (fname='WIND', units='m/s', &
160168
avgflag='A', long_name='atmospheric wind velocity magnitude', &

0 commit comments

Comments
 (0)