New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
arch-macport_osx.fcm in trunk/NEMOGCM/ARCH/CNRS – NEMO

source: trunk/NEMOGCM/ARCH/CNRS/arch-macport_osx.fcm @ 3904

Last change on this file since 3904 was 3904, checked in by cetlod, 11 years ago

bugfixes in PISCES, see ticket #1099

File size: 1.5 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/cethe/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                  ar
37%ARFLAGS             rs
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.