Skip to content

Commit

Permalink
Add more prints
Browse files Browse the repository at this point in the history
  • Loading branch information
billsacks committed Apr 5, 2024
1 parent e7831d4 commit b826f72
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/biogeophys/CanopyFluxesMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module CanopyFluxesMod
use SoilWaterRetentionCurveMod, only : soil_water_retention_curve_type
use LunaMod , only : Update_Photosynthesis_Capacity, Acc24_Climate_LUNA,Acc240_Climate_LUNA,Clear24_Climate_LUNA
use NumericsMod , only : truncate_small_values
use spmdMod, only : iam
!
! !PUBLIC TYPES:
implicit none
Expand Down Expand Up @@ -643,6 +644,10 @@ subroutine CanopyFluxes(bounds, num_exposedvegp, filter_exposedvegp,

dtime = get_step_size_real()

if (iam == 20) then
write(iulog,*) 'WJS: Start of CanopyFluxes: ', snocan(24)
end if

! Make a local copy of the exposedvegp filter. With the current implementation,
! this is needed because the filter is modified in the iteration loop.
!
Expand Down Expand Up @@ -1600,6 +1605,9 @@ subroutine CanopyFluxes(bounds, num_exposedvegp, filter_exposedvegp,

! save before updating
snocan_baseline(p) = snocan(p)
if (iam == 20 .and. p == 24) then
write(iulog,*) 'WJS: CanopyFluxes before: ', snocan(p)
end if

! Update dew accumulation (kg/m2)
if (t_veg(p) > tfrz ) then ! above freezing, update accumulation in liqcan
Expand All @@ -1624,6 +1632,9 @@ subroutine CanopyFluxes(bounds, num_exposedvegp, filter_exposedvegp,
end if
end if

if (iam == 20 .and. p == 24) then
write(iulog,*) 'WJS: CanopyFluxes after: ', snocan(p)
end if
end do

! Remove snocan that got reduced by more than a factor of rel_epsilon
Expand Down Expand Up @@ -1751,6 +1762,10 @@ subroutine CanopyFluxes(bounds, num_exposedvegp, filter_exposedvegp,
write(iulog,*) 'energy balance in canopy ',p,', err=',err(p)
end do

if (iam == 20) then
write(iulog,*) 'WJS: End of CanopyFluxes: ', snocan(24)
end if

end associate


Expand Down

0 comments on commit b826f72

Please sign in to comment.