forked from quimbp/cosmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OS.make.inc
46 lines (43 loc) · 1.35 KB
/
OS.make.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# COSMO PROJECT
# Quim Ballabrera, September 2017
#
# Compiler options and libraries
# The code has been created and tested using gfortran.
# The NF90_LIB and NF90_INC variables had been fed from the
# bash environment.
# Modify according operative system and library paths:
#
# COSMO = the project root folder
# FC = Fortran95 compiler
# FFLAGS = Compiler options
# INSTALL = Program used to copy files setting theis mode bits, etc.
# AR = Library archive manager
# NF90_INC = Path to the NetCDF Fortran 90 modules
# NF90_LIB = Path to the NetCDF Fortran 90 libraries
#
# Path of installation
#
COSMO = /Users/Emma/Scripts/Cosmo
#
# Include the fortran compiler (located at: /usr/local/Cellar/gcc/8.2.0/bin)
# with a symbolic link at /usr/local/bin
#
FC = gfortran
FFLAGS = -O4 -fno-range-check -finit-real=nan -finit-integer=0 -finit-character=0 -finit-logical=false -fno-automatic
INSTALL = install
AR = ar cq
#
# Include the path to the netcdf fortran modules and libraries
#
NF90_INC = /usr/local/Cellar/netcdf/4.6.1_2/include/
NF90_LIB = /usr/local/Cellar/netcdf/4.6.1_2/lib
#
# Folders where files are going to be installed
#
BINDIR = $(COSMO)/bin
LIBDIR = $(COSMO)/lib
INCDIR = $(COSMO)/include
CDFLIB = -L$(NF90_LIB) -lnetcdf -lnetcdff
CDFINC = -I$(NF90_INC)
# Include it in the user profile
echo 'export COSMO="/Users/Emma/Scripts/Cosmo/bin/"' >> ~/.bash_profile