From e1f5e9f725e55dd6708bf486b3d9a315336c8184 Mon Sep 17 00:00:00 2001 From: Matthias Redies Date: Fri, 11 Jan 2019 10:17:09 +0100 Subject: [PATCH] better gfortran flags --- cmake/compilerflags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/compilerflags.cmake b/cmake/compilerflags.cmake index 46f3c24d..5c5b1dfa 100644 --- a/cmake/compilerflags.cmake +++ b/cmake/compilerflags.cmake @@ -39,6 +39,6 @@ elseif(${CMAKE_Fortran_COMPILER_ID} MATCHES "GNU") message(FATAL_ERROR "Only modern versions of gfortran >6.3 will be able to compile FLEUR\nYou need to specify a different compiler.\nSee the docs at www.flapw.de.\n") endif() set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffree-line-length-none -fopenmp -fdefault-real-8 -Wno-missing-include-dirs") - set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -O1") + set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -O2") set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -fdump-core -Wall -Wextra -Warray-temporaries -fbacktrace -fcheck=all -finit-real=nan -O0 -g -DCPP_DEBUG") endif() -- GitLab