We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
INTEGRATOR/monteCarloRadiativeTransfer.f95, subroutine computeScatteringAngle
In this subroutine the definition of 'leftover' is: leftover = randomDeviate - real(angleIndex - 1)/real(numIntervals)
Also, angleIndex = int(randomDeviate * numInterval) + 1
so if I simplify the words we have: leftover = r - int( r * N ) / N
which is always going to be close to zero.
The line in question should be: leftover = randomDeviate * real(numIntervals) - real(angleIndex - 1)
allowing leftover to vary from 0 to 1
Stuart
The text was updated successfully, but these errors were encountered:
No branches or pull requests
INTEGRATOR/monteCarloRadiativeTransfer.f95, subroutine computeScatteringAngle
In this subroutine the definition of 'leftover' is:
leftover = randomDeviate - real(angleIndex - 1)/real(numIntervals)
Also, angleIndex = int(randomDeviate * numInterval) + 1
so if I simplify the words we have:
leftover = r - int( r * N ) / N
which is always going to be close to zero.
The line in question should be:
leftover = randomDeviate * real(numIntervals) - real(angleIndex - 1)
allowing leftover to vary from 0 to 1
Stuart
The text was updated successfully, but these errors were encountered: