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

disable FPE around boost call #754

Closed
wants to merge 2 commits into from

Conversation

tjhei
Copy link
Member

@tjhei tjhei commented Feb 15, 2016

some versions of boost generate an FPE in
boost::math::spherical_harmonic_r so we disable floating point
exceptions around it for now.

@tjhei
Copy link
Member Author

tjhei commented Feb 15, 2016

Note: there are more calls to spherical_harmonic_r in the code but I would like to test this first. Do not merge yet.

some versions of boost generate an FPE in
boost::math::spherical_harmonic_r so we disable floating point
exceptions around it for now.
#ifdef ASPECT_USE_FP_EXCEPTIONS
#include <fenv.h>
#endif
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you nest these preprocessor commands via indentation, e.g.

#ifdef ...
#  ifdef ...
#    include ...

@bangerth
Copy link
Contributor

As I've mentioned on other occasions, I tend to think that this is not a scalable solution. If a particular call to a function gives us trouble, then we should add that call to the cmake test and just disable FPEs altogether on that system, based on the assumption that if one call is problematic then others will likely be as well.

@bangerth
Copy link
Contributor

bangerth commented Jul 1, 2016

In an effort to clean up the pull request data base, let me close this -- it seems to me that we don't have a clear path forward with this PR. We can always open it at a later time again.

@bangerth bangerth closed this Jul 1, 2016
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.

None yet

2 participants