From d3467705cad7bab00edb84363532df5389c915b5 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Mon, 22 May 2017 10:08:16 +0200 Subject: [PATCH] compilation exception not needed any more for intrinsic NaN function --- src/CMakeLists.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 83647d8d0..a3625ef1a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,16 +1,5 @@ # special flags for some files if (${CMAKE_Fortran_COMPILER_ID} STREQUAL "GNU") - - SET_SOURCE_FILES_PROPERTIES( "prec.f90" PROPERTIES - COMPILE_FLAGS "-fno-range-check -fall-intrinsics -fno-fast-math") - # fno-range-check: Disable range checking on results of simplification of constant expressions during compilation - # --> allows the definition of DAMASK_NaN - #-fall-intrinsics: all intrinsic procedures (including the GNU-specific extensions) are accepted. -Wintrinsics-std will be ignored - # and no user-defined procedure with the same name as any intrinsic will be called except when it is explicitly declared external - # --> allows the use of 'isnan' - #-fno-fast-math: - # --> otherwise, when setting -ffast-math, isnan always evaluates to false (I would call it a bug) - SET_SOURCE_FILES_PROPERTIES( "lattice.f90" PROPERTIES COMPILE_FLAGS "-ffree-line-length-240") # long lines for interaction matrix