Skip to content

[BugFix] Visual Studio only building in Single Precision#1560

Merged
deslaughter merged 2 commits intoOpenFAST:devfrom
deslaughter:b/def_dp
May 9, 2023
Merged

[BugFix] Visual Studio only building in Single Precision#1560
deslaughter merged 2 commits intoOpenFAST:devfrom
deslaughter:b/def_dp

Conversation

@deslaughter
Copy link
Collaborator

This pull request is ready to merge.

Impacted areas of the software
Visual Studio project files (.vfproj)

Additional supporting information
PR #1453 (to remove quad-precision kinds from OpenFAST) broke the backwards compatibility maintained by PR #524 when the DOUBLE_PRECISION define check was removed from SingPrec.f90. The CMake build system uses the DOUBLE_PRECISION flag to specify whether OpenFAST should be compiled in single or double precision; however, CMake defined the OPENFAST_DOUBLE_PRECISION macro to indicate this to the compiler.

It was incorrectly assumed that the check for the DOUBLE_PRECISION macro wasn't being used; however, Visual Studio used this macro instead of OPENFAST_DOUBLE_PRECISION. Therefore, removing this check caused Visual Studio to only generate single precision executables.

This pull request changes the Visual Studio project files to define OPENFAST_DOUBLE_PRECISION to be consistent with CMake and resolve the issue.

…SION`

This backward-compatibility of preprocessor definitions from OpenFAST#524 was broken in OpenFAST#1453.
This backward-compatibility of preprocessor definitions from OpenFAST#524 was broken in OpenFAST#1453.
@deslaughter deslaughter merged commit c7fc73a into OpenFAST:dev May 9, 2023
@deslaughter deslaughter deleted the b/def_dp branch May 9, 2023 13:27
@andrew-platt andrew-platt mentioned this pull request May 12, 2023
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants