Fixed sample_angles interpolation of mu. The old way was resulting in mus outside the range of [-1,1] and was effectively using the slope of the randomly selected bin but extrapolating to the next lower bin.

This commit is contained in:
Adam Nelson 2014-05-19 12:19:14 -04:00
parent e22b452b5f
commit d1ca3519f2

View file

@ -1164,7 +1164,7 @@ contains
! calculate cosine
mu0 = rxn % adist % data(lc + k)
mu1 = rxn % adist % data(lc + k+1)
mu = mu0 + (32.0_8 * xi - k) * (mu1 - mu0)
mu = mu0 + (32.0_8 * xi - k + ONE) * (mu1 - mu0)
elseif (type == ANGLE_TABULAR) then
interp = int(rxn % adist % data(lc + 1))