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

CMake: overhaul options #1490

Merged
merged 21 commits into from
Nov 5, 2020
Merged

Conversation

mic84
Copy link
Contributor

@mic84 mic84 commented Oct 30, 2020

Summary

  • wait for WarpX CI to be ready for breaking changes: CMake: New AMReX Options ECP-WarpX/WarpX#1492
  • wait for <unreleased-WarpX-code> to be ready
  • wait for incflo to be ready for breaking changes
  • wait for MFIX to be ready for breaking changes
  • wait for AMR-Wind to be ready for breaking changes
  • wait for PeleC to be ready for breaking changes

Additional background

Checklist

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

@mic84 mic84 requested a review from ax3l October 30, 2020 02:35
@ax3l ax3l added the install label Oct 30, 2020
@mic84 mic84 changed the title [WIP] CMake: overhaul options CMake: overhaul options Oct 30, 2020
@mic84 mic84 changed the title CMake: overhaul options [WIP] CMake: overhaul options Oct 30, 2020
@mic84 mic84 changed the title [WIP] CMake: overhaul options CMake: overhaul options Nov 2, 2020
@mic84 mic84 marked this pull request as ready for review November 2, 2020 19:51
@ax3l ax3l changed the title CMake: overhaul options [WIP] CMake: overhaul options Nov 2, 2020
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

Looks very good - we are now informing & waiting for downstream codes to anticipate the breaking change without much friction.

# This will stop the subsequent option( AMReX_FORTRAN "Enable Fortran language" ON )
# from being executed and no entry AMReX_FORTRAN will be created in the cache
#
option( USE_XSDK_DEFAULTS "Enable xSDK mode" OFF )
Copy link
Member

Choose a reason for hiding this comment

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

It would be pretty nice if we could fulfill the xSDK policies by default for high usability, also because it would be less logic to test.
Do you and CC @WeiqunZhang see a way towards that? Maybe this is a good time to introduce this as well, just curious.

mic84 and others added 2 commits November 2, 2020 15:39
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
endif ()


set(AMReX_PRECISION_VALUES SINGLE DOUBLE)
Copy link
Member

@ax3l ax3l Nov 2, 2020

Choose a reason for hiding this comment

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

Just a minor taste quesion:
Since this is not an abbreviation of brand name, I picked lowercase single/double last when I added this to WarpX. I am ok to go all caps, too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I picked upper case because the options names are upper case anyways. I can make it case-insensitive tho.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, case insensitive is nice for this one, too. Only if it's not too much work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, making it case-insensitive requires a little bit of extra logic. Also, XSDK seems to prescribe the use of upper case.At this point, I will leave it upper case. Sorry :-(

mic84 and others added 2 commits November 3, 2020 14:27
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
mic84 and others added 2 commits November 4, 2020 09:11
@mic84 mic84 requested a review from ax3l November 4, 2020 17:26
@mic84 mic84 changed the title [WIP] CMake: overhaul options CMake: overhaul options Nov 4, 2020
@mic84 mic84 merged commit 86c6b3d into AMReX-Codes:development Nov 5, 2020
@mic84 mic84 deleted the mr/cmake-overhaul-options branch November 5, 2020 03:39
sayerhs added a commit to Exawind/amr-wind that referenced this pull request Nov 5, 2020
This was referenced Nov 7, 2020
sayerhs added a commit to Exawind/amr-wind that referenced this pull request Nov 10, 2020
@ax3l ax3l mentioned this pull request Nov 17, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants