Skip to content
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

Different behavior PropagationUtility{Integral,Interpolant} in GetUpperLimit #387

Open
MaxSac opened this issue Jan 29, 2024 · 0 comments
Open

Comments

@MaxSac
Copy link
Contributor

MaxSac commented Jan 29, 2024

Dependent if the integral or the integral, the functions throw an error or only an assertion.
Making the integral throwing as well, make the behavior more consistency.

assert(sum > rnd); // searched energy is below lower_lim

auto max_rnd = Calculate(upper_limit, lower_lim);
if (rnd > max_rnd)
throw std::logic_error("Unable to calculate GetUpperLimit since result"
"is below lower_lim. rnd was " + std::to_string(rnd)
+ " with rnd_max " + std::to_string(max_rnd));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant