Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion modules/nwtc-library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ set(NWTCLIBS_SOURCES
src/Polynomial/quartic.f90

# NetLib sources
src/NetLib/fftpack/fftpack4.1.f
src/NetLib/fftpack/fftpack5.1.f
src/NetLib/scalapack/dlasrt2.f
src/NetLib/scalapack/slasrt2.f
src/NetLib/fftpack/NWTC_FFTPACK.f90
Expand All @@ -124,6 +124,13 @@ set(NWTCLIBS_SOURCES

get_filename_component(FCNAME ${CMAKE_Fortran_COMPILER} NAME)

# FFTPACK 5.1 uses legacy Fortran 77 type punning (COMPLEX<->REAL) and must
# NOT be promoted to double precision (its callers pass explicit SiKi/R4Ki arrays).
if (${CMAKE_Fortran_COMPILER_ID} STREQUAL "GNU")
set_source_files_properties(src/NetLib/fftpack/fftpack5.1.f PROPERTIES COMPILE_FLAGS
"-fallow-argument-mismatch -fno-default-real-8 -fno-default-double-8")
endif()

# Recursive use of routine in qk61/dqk61 will trigger errors in debug
if (CMAKE_BUILD_TYPE MATCHES Debug)
if (${CMAKE_Fortran_COMPILER_ID} STREQUAL "GNU")
Expand Down
608 changes: 526 additions & 82 deletions modules/nwtc-library/src/NetLib/fftpack/NWTC_FFTPACK.f90

Large diffs are not rendered by default.

Loading
Loading