Skip to content

Commit

Permalink
replace the hardcoded precision constants with the appropriate precision
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaesung committed Nov 12, 2024
1 parent b325da7 commit f6f1892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions physics/CONV/progsigma_calc.f90
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ subroutine progsigma_calc (im,km,flag_init,flag_restart,flag_shallow,&
sigmab(i) = sigmain(i,k)
else
sigmab(i) = sigmab(i) / sumx(i)
sigmab(i) = min(sigmab(i), 1.0)
sigmab(i) = min(sigmab(i), 1._kind_phys)
if(sigmab(i) < 1.E-5) sigmab(i)=0.
endif
endif
Expand Down Expand Up @@ -184,7 +184,7 @@ subroutine progsigma_calc (im,km,flag_init,flag_restart,flag_shallow,&
!sigmab
do i = 1,im
if(cnvflg(i))then
DEN=MIN(termC(i)+termB(i),1.E8)
DEN=MIN(termC(i)+termB(i),1._kind_phys)
cvg=termD(i)*delt
ZZ=MAX(0.0,SIGN(1.0,termA(i))) &
*MAX(0.0,SIGN(1.0,termB(i))) &
Expand Down

0 comments on commit f6f1892

Please sign in to comment.