source: branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/ARCH/CNRS/arch-macport_osx.fcm @ 3993

Last change on this file since 3993 was 3993, checked in by clevy, 8 years ago

Configuration setting/Step3 bugfixes,doc, and redistribute variables in namcfg and namdom see ticket:#1074

File size: 1.6 KB
Line 
1# generic gfortran compiler options for OSX installed with macport
2#
3# port packages needed:
4#    sudo port install openmpi +gcc45
5#    sudo port install hdf5-18 +cxx +fortran +openmpi (I'am not sure cxx is needed)
6#    sudo port install netcdf         +openmpi
7#    sudo port install netcdf-fortran +openmpi
8#    sudo port install netcdf-cxx     +openmpi (I'am not sure it is needed)
9#    sudo port install p5-uri
10# add to your PATH /opt/local/lib/openmpi/bin so that mpif90 is properly known
11#
12# NCDF_INC    netcdf include file
13# NCDF_LIB    netcdf library
14# FC          Fortran compiler command
15# FCFLAGS     Fortran compiler flags
16# FFLAGS      Fortran 77 compiler flags
17# LD          linker
18# LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
19# FPPFLAGS    pre-processing flags
20# AR          assembler
21# ARFLAGS     assembler flags
22# MK          make
23# USER_INC    additional include files for the compiler,  e.g. -I<include dir>
24# USER_LIB    additional libraries to pass to the linker, e.g. -l<library>
25
26
27%NCDF_INC            -I/opt/local/include
28%NCDF_LIB            -L/opt/local/lib -lnetcdf -lnetcdff
29%XIOS_ROOT           /Users/clelod/Documents/WORK/XIOS
30%FC                mpif90
31%FCFLAGS             -fdefault-real-8 -O3 -funroll-all-loops -fcray-pointer
32%FFLAGS              %FCFLAGS
33%LD                  %FC
34%LDFLAGS             -lstdc++ -lmpi_cxx
35%FPPFLAGS            -P -C -traditional
36%AR                  libtool
37%ARFLAGS             -c -s -o
38%MK                  make
39%USER_INC            %NCDF_INC -I%XIOS_ROOT/inc
40%USER_LIB            -L%XIOS_ROOT/lib -lxios %NCDF_LIB
41
Note: See TracBrowser for help on using the repository browser.