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.
Changeset 3922 for trunk/NEMOGCM/ARCH/arch-macport_osx.fcm – NEMO

Ignore:
Timestamp:
2013-06-14T12:37:08+02:00 (11 years ago)
Author:
smasson
Message:

trunk:compilation enhancements, see ticket #1117

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/ARCH/arch-macport_osx.fcm

    r3917 r3922  
    1 # generic gfortran compiler options for OSX installed with macport 
     1# generic gfortran compiler options for OSX installed with macport, http://www.macports.org/ 
    22# 
    33# port packages needed: 
    4 #    sudo port install openmpi +gcc45 
     4#    sudo port install openmpi +gcc48 
    55#    sudo port install hdf5-18 +cxx +fortran +openmpi (I'am not sure cxx is needed) 
    66#    sudo port install netcdf         +openmpi 
     
    1010# add to your PATH /opt/local/lib/openmpi/bin so that mpif90 is properly known 
    1111# 
    12 # NCDF_INC    netcdf include file 
    13 # NCDF_LIB    netcdf library 
     12# NCDF_HOME   root directory containing lib and include subdirectories for netcdf4 
     13# HDF5_HOME   root directory containing lib and include subdirectories for HDF5 
     14# XIOS_HOME   root directory containing lib for XIOS 
     15# OASIS_HOME  root directory containing lib for OASIS 
     16# 
     17# NCDF_INC    netcdf4 include file 
     18# NCDF_LIB    netcdf4 library 
     19# XIOS_INC    xios include file    (taken into accound only if key_iomput is activated) 
     20# XIOS_LIB    xios library         (taken into accound only if key_iomput is activated) 
     21# OASIS_INC   oasis include file   (taken into accound only if key_oasis3 is activated) 
     22# OASIS_LIB   oasis library        (taken into accound only if key_oasis3 is activated) 
     23# 
    1424# FC          Fortran compiler command 
    1525# FCFLAGS     Fortran compiler flags 
    1626# FFLAGS      Fortran 77 compiler flags 
    1727# LD          linker 
    18 # LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a 
     28# LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries 
    1929# FPPFLAGS    pre-processing flags 
    2030# AR          assembler 
    2131# ARFLAGS     assembler flags 
    2232# 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> 
     33# USER_INC    complete list of include files 
     34# USER_LIB    complete list of libraries to pass to the linker 
     35# 
     36# Note that: 
     37#  - unix variables "$..." are accpeted and will be evaluated before calling fcm. 
     38#  - fcm variables are starting with a % (and not a $) 
     39# 
     40%NCDF_HOME           /opt/local 
     41%HDF5_HOME           /opt/local 
     42%XIOS_HOME           /Users/$( whoami )/XIOS 
     43%OASIS_HOME          /not/defined 
    2544 
     45%NCDF_INC            -I%NCDF_HOME/include -I%HDF5_HOME/include 
     46%NCDF_LIB            -L%NCDF_HOME/lib -lnetcdff -lnetcdf 
     47%XIOS_INC            -I%XIOS_HOME/inc  
     48%XIOS_LIB            -L%XIOS_HOME/lib -lxios 
     49%OASIS_INC           -I%OASIS_HOME/build/lib/mct -I%OASIS_HOME/build/lib/psmile.MPI1 
     50%OASIS_LIB           -L%OASIS_HOME/lib -lpsmile.MPI1 -lmct -lmpeu -lscrip 
    2651 
    27 %NCDF_INC            -I/opt/local/include 
    28 %NCDF_LIB            -L/opt/local/lib -lnetcdf -lnetcdff 
    29 %XIOS_ROOT           /Users/cethe/XIOS 
    3052%FC                mpif90  
    3153%FCFLAGS             -fdefault-real-8 -O3 -funroll-all-loops -fcray-pointer  
     
    3759%ARFLAGS             rs 
    3860%MK                  make 
    39 %USER_INC            %NCDF_INC -I%XIOS_ROOT/inc 
    40 %USER_LIB            -L%XIOS_ROOT/lib -lxios %NCDF_LIB 
    41  
     61%USER_INC            %XIOS_INC %OASIS_INC %NCDF_INC 
     62%USER_LIB            %XIOS_LIB %OASIS_LIB %NCDF_LIB 
Note: See TracChangeset for help on using the changeset viewer.