2015-05-27 17:49:31 +02:00
|
|
|
# Common flags
|
|
|
|
##############
|
|
|
|
#
|
|
|
|
# -ffree-line-length-none : Needed for IRPF90 which produces long lines
|
|
|
|
# -lblas -llapack : Link with libblas and liblapack libraries provided by the system
|
2015-06-03 11:32:10 +02:00
|
|
|
# -I . : Include the curent directory (Mandatory)
|
2015-05-27 17:49:31 +02:00
|
|
|
#
|
2015-06-03 11:32:10 +02:00
|
|
|
# --ninja : Allow the utilisation of ninja. (Mandatory)
|
2015-05-27 17:49:31 +02:00
|
|
|
# --align=32 : Align all provided arrays on a 32-byte boundary
|
|
|
|
#
|
2015-06-03 10:51:32 +02:00
|
|
|
#
|
2015-05-27 17:49:31 +02:00
|
|
|
[COMMON]
|
2016-02-19 00:20:28 +01:00
|
|
|
FC : gfortran -ffree-line-length-none -I .
|
2015-06-21 23:08:18 +02:00
|
|
|
LAPACK_LIB : -llapack -lblas
|
2015-06-03 09:49:49 +02:00
|
|
|
IRPF90 : irpf90
|
2015-06-03 10:51:32 +02:00
|
|
|
IRPF90_FLAGS : --ninja --align=32
|
2015-05-27 17:49:31 +02:00
|
|
|
|
|
|
|
# Global options
|
|
|
|
################
|
|
|
|
#
|
|
|
|
# 1 : Activate
|
|
|
|
# 0 : Deactivate
|
|
|
|
#
|
|
|
|
[OPTION]
|
2016-06-02 12:47:35 +02:00
|
|
|
MODE : OPT ; [ OPT | PROFILE | DEBUG ] : Chooses the section below
|
2015-05-27 17:49:31 +02:00
|
|
|
CACHE : 1 ; Enable cache_compile.py
|
|
|
|
OPENMP : 1 ; Append OpenMP flags
|
|
|
|
|
|
|
|
# Optimization flags
|
|
|
|
####################
|
|
|
|
#
|
|
|
|
# -Ofast : Disregard strict standards compliance. Enables all -O3 optimizations.
|
|
|
|
# It also enables optimizations that are not valid
|
|
|
|
# for all standard-compliant programs. It turns on
|
|
|
|
# -ffast-math and the Fortran-specific
|
|
|
|
# -fno-protect-parens and -fstack-arrays.
|
|
|
|
[OPT]
|
2016-04-07 11:13:14 +02:00
|
|
|
FCFLAGS : -Ofast
|
2015-05-27 17:49:31 +02:00
|
|
|
|
|
|
|
# Profiling flags
|
|
|
|
#################
|
|
|
|
#
|
|
|
|
[PROFILE]
|
|
|
|
FC : -p -g
|
2015-06-11 17:26:05 +02:00
|
|
|
FCFLAGS : -Ofast
|
2015-05-27 17:49:31 +02:00
|
|
|
|
|
|
|
# Debugging flags
|
|
|
|
#################
|
|
|
|
#
|
|
|
|
# -fcheck=all : Checks uninitialized variables, array subscripts, etc...
|
|
|
|
# -g : Extra debugging information
|
|
|
|
#
|
|
|
|
[DEBUG]
|
|
|
|
FCFLAGS : -fcheck=all -g
|
|
|
|
|
|
|
|
# OpenMP flags
|
|
|
|
#################
|
|
|
|
#
|
|
|
|
[OPENMP]
|
|
|
|
FC : -fopenmp
|
|
|
|
IRPF90_FLAGS : --openmp
|
|
|
|
|