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

Last change on this file was 6016, checked in by yann meurdesoif, 3 months ago

Add new ecrad version from DWD ported onto OpenACC, closed from original ecrad ECMWF starting point for LMDZ ecrad version.

Modification from ecrad-lmdz version has been included.

YM

  • Property svn:eol-style set to native
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.