source: LMDZ6/trunk/libf/phylmd/ecrad/Makefile_include.gfortran

Last change on this file was 4773, checked in by idelkadi, 11 months ago
  • Update of Ecrad in LMDZ The same organization of the Ecrad offline version is retained in order to facilitate the updating of Ecrad in LMDZ and the comparison between online and offline results. version 1.6.1 of Ecrad (https://github.com/lguez/ecrad.git)
  • Implementation of the double call of Ecrad in LMDZ


File size: 1.2 KB
Line 
1# Fortran compiler executable -*- Makefile -*-
2FC = gfortran
3
4# Tell the compiler to accept C-preprocessor directives
5CPPFLAGS = -cpp
6
7# Basic flags such as where to write module files. We used to have the
8# flag "-fconvert=big-endian" here because the RRTM input files are
9# big endian Fortran unformatted files, but now the file ordering has
10# been specified at the OPEN command so no compiler flags are needed.
11BASICFLAGS = -J../mod -fno-range-check
12
13# OpenMP flag; type "make OMPFLAG=-DNO_OPENMP" to compile with OpenMP
14# disabled
15OMPFLAG = -fopenmp
16
17ifndef DEBUG
18# --NORMAL CONFIGURATION--
19
20# Optimization flags
21OPTFLAGS = -O3
22# -march=native
23
24# Warning flags: all except those that warn about unused stuff
25WARNFLAGS = -Wall -Wno-unused-label -Wno-unused-dummy-argument -Wno-unused-variable
26
27# Debugging flags, such as "-g" to store debugging symbols, and
28# instructions to abort if certain floating-point exceptions occur
29DEBUGFLAGS = -g -ffpe-trap=invalid,zero,overflow
30
31else
32# --DEBUGGING CONFIGURATION--
33OPTFLAGS = -O0
34WARNFLAGS = -Wall
35DEBUGFLAGS = -g -ffpe-trap=invalid,zero,overflow -fcheck=bounds -finit-real=snan -fbacktrace
36
37endif
38
39ifdef GPROF
40# Add gprof output
41DEBUGFLAGS += -pg
42endif
Note: See TracBrowser for help on using the repository browser.