Skip to content

Commit

Permalink
Use same balance_check_tolerance for C and P
Browse files Browse the repository at this point in the history
  • Loading branch information
wlin7 committed Sep 30, 2024
1 parent f46455b commit 632faeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/elm/src/biogeochem/EcosystemBalanceCheckMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ subroutine ColCBalanceCheck(bounds, &
end if

! check for significant errors
if (abs(col_errcb(c)) > 1e-8_r8) then
if (abs(col_errcb(c)) > balance_check_tolerance) then
err_found = .true.
err_index = c
end if
Expand Down Expand Up @@ -734,7 +734,7 @@ subroutine ColPBalanceCheck(bounds, &
col_errpb(c) = (col_pinputs(c) - col_poutputs(c))*dt - &
(col_endpb(c) - col_begpb(c))

if (abs(col_errpb(c)) > 1e-8_r8) then
if (abs(col_errpb(c)) > balance_check_tolerance) then
err_found = .true.
err_index = c
end if
Expand Down

0 comments on commit 632faeb

Please sign in to comment.