Moved line in ACE law 44 calculation to save a few flops.

This commit is contained in:
Paul Romano 2012-07-25 18:09:13 -04:00
parent 36d4a8a998
commit 679e6732ae

View file

@ -1821,8 +1821,8 @@ contains
! Sampled correlated angle from Kalbach-Mann parameters
r3 = prn()
r4 = prn()
T = (TWO*r4 - ONE) * sinh(KM_A)
if (r3 > KM_R) then
T = (TWO*r4 - ONE) * sinh(KM_A)
mu_out = log(T + sqrt(T*T + ONE))/KM_A
else
mu_out = log(r4*exp(KM_A) + (ONE - r4)*exp(-KM_A))/KM_A