Skip to content

Commit

Permalink
Added debug protection to an abundant water balance error write state…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
rgknox committed Nov 20, 2018
1 parent 757d93b commit 9d70ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biogeophys/FatesPlantHydraulicsMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3361,7 +3361,7 @@ subroutine Hydraulics_1DSolve(cc_p, ft, z_node, v_node, ths_node, thr_node, kmax
ccohort_hydr%iterh2 = real(iterh2)

! WATER BALANCE ERROR-HANDLING
if (abs(we_local) > thresh) then
if ( (abs(we_local) > thresh) .and. debug) then
write(fates_log(),*)'WARNING: plant hydraulics water balance error exceeds threshold of ',&
thresh
else if (abs(we_local) > thresh_break) then
Expand Down

0 comments on commit 9d70ddd

Please sign in to comment.