early return not needed here
This commit is contained in:
parent
2254746177
commit
b6abbfca9d
|
@ -1783,11 +1783,9 @@ function math_sampleGaussOri(center,noise)
|
||||||
real(pReal), dimension(3), parameter :: ORIGIN = 0.0_pReal
|
real(pReal), dimension(3), parameter :: ORIGIN = 0.0_pReal
|
||||||
real(pReal), dimension(5) :: rnd
|
real(pReal), dimension(5) :: rnd
|
||||||
|
|
||||||
if (abs(noise) < tol_math_check) then
|
noScatter: if (abs(noise) < tol_math_check) then
|
||||||
math_sampleGaussOri = center
|
math_sampleGaussOri = center
|
||||||
return
|
else noScatter
|
||||||
endif
|
|
||||||
|
|
||||||
! Helming uses different distribution with Bessel functions
|
! Helming uses different distribution with Bessel functions
|
||||||
! therefore the gauss scatter width has to be scaled differently
|
! therefore the gauss scatter width has to be scaled differently
|
||||||
scatter = 0.95_pReal * noise
|
scatter = 0.95_pReal * noise
|
||||||
|
@ -1803,6 +1801,7 @@ function math_sampleGaussOri(center,noise)
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
math_sampleGaussOri = math_RtoEuler(math_mul33x33(math_EulerToR(disturb),math_EulerToR(center)))
|
math_sampleGaussOri = math_RtoEuler(math_mul33x33(math_EulerToR(disturb),math_EulerToR(center)))
|
||||||
|
endif noScatter
|
||||||
|
|
||||||
end function math_sampleGaussOri
|
end function math_sampleGaussOri
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue