Skip to content

Workaround DOUBLE_PRECISION macro when building with HPE MPT#524

Merged
rafmudaf merged 1 commit intoOpenFAST:devfrom
sayerhs:f/dp_mpt
Aug 13, 2020
Merged

Workaround DOUBLE_PRECISION macro when building with HPE MPT#524
rafmudaf merged 1 commit intoOpenFAST:devfrom
sayerhs:f/dp_mpt

Conversation

@sayerhs
Copy link
Contributor

@sayerhs sayerhs commented Aug 12, 2020

OpenFAST currently uses DOUBLE_PRECISION compile-time definition to activate double precision as default during build. This conflicts with the define in the MPI header file (for HPE MPT) when building the C++ API interface. This commit works around this issue by using OPENFAST_DOUBLE_PRECISION variable when building with CMake. The code checks for the original DOUBLE_PRECISION macro for backward compatibility. The VS build pathway is unaffected.

Fixes #522

THIS PULL REQUEST IS READY TO MERGE

Impacted areas of the software

  • NWTC_Library

OpenFAST currently uses `DOUBLE_PRECISION` compile-time definition to activate double precision as default during build. This conflicts with the define in the MPI header file (for HPE MPT) when building the C++ API interface. This commit works around this issue by using `OPENFAST_DOUBLE_PRECISION` variable when building with CMake. The code checks for the original `DOUBLE_PRECISION` macro for backward compatibility. The VS build pathway is unaffected.

Fixes OpenFAST#522
@sayerhs sayerhs self-assigned this Aug 12, 2020
@sayerhs
Copy link
Contributor Author

sayerhs commented Aug 12, 2020

FYI @jrood-nrel

@sayerhs sayerhs linked an issue Aug 12, 2020 that may be closed by this pull request
@jrood-nrel
Copy link
Collaborator

Excellent. Thanks for doing this.

Copy link
Collaborator

@rafmudaf rafmudaf 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 to me.

@rafmudaf rafmudaf merged commit f2517ec into OpenFAST:dev Aug 13, 2020
bjonkman added a commit to bjonkman/openfast that referenced this pull request May 8, 2023
…SION`

This backward-compatibility of preprocessor definitions from OpenFAST#524 was broken in OpenFAST#1453.
deslaughter pushed a commit to deslaughter/openfast that referenced this pull request May 8, 2023
…SION`

This backward-compatibility of preprocessor definitions from OpenFAST#524 was broken in OpenFAST#1453.
deslaughter added a commit to deslaughter/openfast that referenced this pull request May 8, 2023
…SION`

This backward-compatibility of preprocessor definitions from OpenFAST#524 was broken in OpenFAST#1453.
deslaughter added a commit to deslaughter/openfast that referenced this pull request May 8, 2023
This backward-compatibility of preprocessor definitions from OpenFAST#524 was broken in OpenFAST#1453.
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.

Errors building with MPT

4 participants