source: utils/build/arch/arch-osx_gfortran.fcm @ 13117

Last change on this file since 13117 was 13117, checked in by smasson, 3 months ago

arch: update info for osx_gfortran, nemo+xios is now fully working with gcc9+mpich

  • Property svn:mime-type set to text/x-perl
File size: 1.9 KB
Line 
1# generic gfortran compiler options for OSX installed with macport, http://www.macports.org/
2#
3#   Prerequisite softwares installed with MacPorts :
4#     sudo port install gcc9
5#     sudo port install gcc_select
6#     sudo port select --set gcc mp-gcc9
7#     sudo port install mpich-gcc9
8#     sudo port install mpi_select
9#     sudo port select --set mpi mpich-gcc9-fortran
10#     sudo port install hdf5 +gcc9 +mpich +szip
11#     sudo port install netcdf +gcc9 +mpich
12#     sudo port install netcdf-fortran +gcc9 +mpich
13#     sudo port install p5.30-uri
14#
15#     $ port select --show mpi
16#     The currently selected version for 'mpi' is 'mpich-gcc9-fortran'.
17#     $ port select --show gcc
18#     The currently selected version for 'gcc' is 'mp-gcc9'.
19#
20# Note that:
21#  - unix variables "$..." are accpeted and will be evaluated before calling fcm.
22#  - fcm variables are starting with a % (and not a $)
23#
24%NCDF_HOME           /opt/local
25%HDF5_HOME           /opt/local
26%XIOS_HOME           /Users/$( whoami )/xios-2.5
27%OASIS_HOME          /not/defined
28
29%NCDF_INC            -I%NCDF_HOME/include -I%HDF5_HOME/include
30%NCDF_LIB            -L%NCDF_HOME/lib -lnetcdff -lnetcdf
31%XIOS_INC            -I%XIOS_HOME/inc
32%XIOS_LIB            -L%XIOS_HOME/lib -lxios -lstdc++ 
33%OASIS_INC           -I%OASIS_HOME/build/lib/mct -I%OASIS_HOME/build/lib/psmile.MPI1
34%OASIS_LIB           -L%OASIS_HOME/lib -lpsmile.MPI1 -lmct -lmpeu -lscrip
35
36%CPP               cpp -Dkey_nosignedzero
37%FC                mpif90
38%FCFLAGS             -fdefault-real-8 -O3 -funroll-all-loops -fcray-pointer -ffree-line-length-none
39%FFLAGS              %FCFLAGS
40%LD                  %FC
41%LDFLAGS             
42%FPPFLAGS            -P -C -traditional
43%AR                  ar
44%ARFLAGS             rs
45%MK                  make
46%USER_INC            %XIOS_INC %OASIS_INC %NCDF_INC
47%USER_LIB            %XIOS_LIB %OASIS_LIB %NCDF_LIB
48
49%CC                  cc
50%CFLAGS              -O0
Note: See TracBrowser for help on using the repository browser.