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 branches/2012/dev_MERGE_2012/NEMOGCM/ARCH/CNRS – NEMO

source: branches/2012/dev_MERGE_2012/NEMOGCM/ARCH/CNRS/arch-macport_osx.fcm @ 3728

Last change on this file since 3728 was 3728, checked in by smasson, 11 years ago

dev_MERGE_2012: macport + XIOS compilation options

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