no early return required here
This commit is contained in:
parent
051f3592ea
commit
6b1c1af609
|
@ -1902,9 +1902,7 @@ real(pReal) function math_sampleGaussVar(meanvalue, stddev, width)
|
||||||
|
|
||||||
if (abs(stddev) < tol_math_check) then
|
if (abs(stddev) < tol_math_check) then
|
||||||
math_sampleGaussVar = meanvalue
|
math_sampleGaussVar = meanvalue
|
||||||
return
|
else
|
||||||
endif
|
|
||||||
|
|
||||||
myWidth = merge(width,3.0_pReal,present(width)) ! use +-3*sigma as default value for scatter if not given
|
myWidth = merge(width,3.0_pReal,present(width)) ! use +-3*sigma as default value for scatter if not given
|
||||||
|
|
||||||
do
|
do
|
||||||
|
@ -1914,6 +1912,7 @@ real(pReal) function math_sampleGaussVar(meanvalue, stddev, width)
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
math_sampleGaussVar = scatter * stddev
|
math_sampleGaussVar = scatter * stddev
|
||||||
|
endif
|
||||||
|
|
||||||
end function math_sampleGaussVar
|
end function math_sampleGaussVar
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue