-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
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
Use std::expm1() in conversion from Planck to Rosseland. #173
Conversation
Several machines appear to have caught some failed assertions associated with this header: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some tests are failing.
Yep, I built Draco and am seeing that So, it's definitely something wrong with my change. |
The old if/else logic was in place to avoid division by zero when nu is very close to zero. That might need to go back in. |
…ore accurace approximation.
More extensive tests failed due to overflow. This is probably occurring when thus it would be Of course looking at the order of operations could be useful as well to try and group operations such that each result remains as close to O(1) as possible. Rolling back all of the changes is an option that we know won't hurt anything, but I'd like to see if the new small frequency approximation breaks anything b/c it should be more accurate (I also highly doubt it's the culprit in this case). |
Purpose of Pull Request
Pre-Merge Code Review