Skip to content

Commit 8769df1

Browse files
authored
Make sure doubles aren't promoted to 16 bytes (#652)
# CABLE ## Description Turns out just using `-fdefault-real-8` also tries to promote any double declarations to 16 byte precision e.g. `1.0d0`. Specifying `fdefault-double-8` supposedly fixes this. Sorry to bug you again @SeanBryan51 Fixes #(560) ## Type of change - [x] Bug fix <!-- readthedocs-preview cable start --> ---- 📚 Documentation preview 📚: https://cable--652.org.readthedocs.build/en/652/ <!-- readthedocs-preview cable end -->
1 parent d07ca75 commit 8769df1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ if(CABLE_LIBRARY)
134134
if(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
135135
add_compile_options(-r8 -i8)
136136
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
137-
add_compile_options(-fdefault-real-8 -fdefault-integer-8)
137+
add_compile_options(-fdefault-real-8 -fdefault-integer-8 -fdefault-double-8)
138138
else()
139139
message(STATUS "Cannot compile library with unknown compiler")
140140
endif()

0 commit comments

Comments
 (0)