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

Implement a log error msg #478

Merged
merged 2 commits into from
Feb 28, 2024
Merged

Implement a log error msg #478

merged 2 commits into from
Feb 28, 2024

Conversation

JADC362
Copy link
Contributor

@JADC362 JADC362 commented Feb 28, 2024

Task

  • Implement an error logging msg if the assert counter < gauss_legendre_50_points.size() is false.

@@ -35,7 +35,12 @@ constexpr double INCOMPLETE_GAMMA_EQUALITY_TRESHOLD = 1e-12;

inline double incomplete_gamma_quadrature_inp_vals(double lb, double ub,
std::size_t counter) {
ALBATROSS_ASSERT(counter < gauss_legendre_50_points.size());
if (counter >= gauss_legendre_50_points.size()) {
std::cout << "ERROR: Counter value " << counter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe better to use cerr?

Copy link
Collaborator

@akleeman akleeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@JADC362 JADC362 merged commit 9a9c6e8 into master Feb 28, 2024
9 checks passed
@JADC362 JADC362 deleted the jadc362/improve_assert_msg branch February 28, 2024 19:30
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

Successfully merging this pull request may close these issues.

2 participants