source: utils/build/arch/arch-osx_gfortran_debug.fcm

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