Compiler flag to automatically identify and upgrade 32-bit floating point constants to 64-bit when they are being assigned to a 64-bit floating point variable. No more tracing down and manually changing the constant

This commit is contained in:
Jeffrey Garretson
2024-04-11 14:54:39 -06:00
parent 69b82f4cf8
commit b721cef7ac

View File

@@ -81,7 +81,7 @@ set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO "${CMAKE_DEFOPT} -g")
if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
set(dialect "-free -implicitnone")
#Base
string(APPEND CMAKE_Fortran_FLAGS " -fPIC")
string(APPEND CMAKE_Fortran_FLAGS " -fPIC -fpconstant")
#Production
if(NOT FAST_YOLO)
set(PROD "-align array64byte -align rec32byte -fimf-use-svml=true -fp-model=source")