Skip to content

Commit

Permalink
check neg values only if DEBUG
Browse files Browse the repository at this point in the history
	modified:   src/chemistry/aerosol/wetdep.F90
  • Loading branch information
fvitt committed Jan 15, 2025
1 parent e402122 commit 305c53a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chemistry/aerosol/wetdep.F90
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ subroutine wetdepa_v2( &

end do ! End of i = 1, ncol

#ifdef DEBUG
found = .false.
do i = 1,ncol
if (dblchek(i) < -1.e-10_r8) then
Expand All @@ -657,6 +658,7 @@ subroutine wetdepa_v2( &
if (found) then
call endrun('wetdapa_v2: negative values found')
end if
#endif

end do ! End of k = 1, pver

Expand Down Expand Up @@ -962,6 +964,7 @@ subroutine wetdepa_v1( t, p, q, pdel, &

end do

#ifdef DEBUG
found = .false.
do i = 1,ncol
if (dblchek(i) < -1.e-10_r8) then
Expand All @@ -974,6 +977,7 @@ subroutine wetdepa_v1( t, p, q, pdel, &
if (found) then
call endrun('wetdapa_v1: negative values found')
end if
#endif

end do

Expand Down

0 comments on commit 305c53a

Please sign in to comment.