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

Issue 940: update mpreal.h #1086

Merged
merged 4 commits into from
Oct 31, 2024

Conversation

LourensVeen
Copy link
Collaborator

This fixes #940 by replacing mpreal.h for both Brutus and Adaptb, updating Brutus to compile with newer compilers (using namespace std; is a bad idea because the namespace may gain new members over time that conflict with your code, as happened here in C++17), and fixes a C/C++ symbol confusion problem when linking Brutus.

I tried it out with the simple gravity simulation from examples/textbook/gravity_minimal.py and it works, except that adaptb doesn't implement some of the methods, but that is what it is given that it's deprecated anyway. At least they compile and run again.

@LourensVeen LourensVeen requested a review from a team as a code owner October 30, 2024 15:05
Copy link
Member

@rieder rieder left a comment

Choose a reason for hiding this comment

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

looks good

@LourensVeen LourensVeen merged commit 411ca13 into amusecode:main Oct 31, 2024
5 checks passed
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.

update necessary for mpreal.h (adaptb, brutus)
2 participants