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

Bump minimum C++ standard from 11 to 14. #1787

Merged
merged 15 commits into from
Feb 16, 2021

Conversation

atmyers
Copy link
Member

@atmyers atmyers commented Feb 12, 2021

This is well-supported now and will allow a lot of the code in amrex to be simplified.

I have also bumped the version on the Cuda 9 CI test to Cuda 9.2 and GCC 6.5.0, since the old combination did not work with C++14.

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • are described in the proposed changes to the AMReX documentation, if appropriate

@atmyers atmyers requested a review from WeiqunZhang February 12, 2021 00:57
else ifeq ($(gcc_major_version),5)
CXXFLAGS += -std=c++14
endif
CXXFLAGS += -std=c++14
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be inside ifeq ($(gcc_major_version),5) so that we only set the option for gcc 5. For gcc > 5, we use the compiler's default.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, done.

@WeiqunZhang WeiqunZhang merged commit 4a332b5 into AMReX-Codes:development Feb 16, 2021
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