Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/unsupported/sunos_sparc_sunf90+mpi_generic+mth is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
6a8af2f257 Cons*0001 #!/bin/bash
                0002 #
                0003 #  Build options for the Sun fortran compiler with a generic MPI
                0004 # DON'T FORGET to set environment variable MPI_INC_DIR to the include
                0005 # directory of your MPI implementation
6144427bd2 Jean*0006 
6a8af2f257 Cons*0007 FC=${FC:=mpif77}
                0008 F90C=${F90C:=mpif90}
                0009 CC=${CC:=mpicc}
                0010 LINK=${F90C}
                0011 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
                0012 DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'
                0013 CPP='/usr/ccs/lib/cpp -P'
                0014 NOOPTFLAGS='-O0 -g -m32 -u -r8const -xopenmp=noopt'
                0015 NOOPTFILES=''
                0016 EXTENDED_SRC_FLAG='-e'
                0017 
                0018 if test "x$DEVEL" != x ; then
                0019     FFLAGS='-u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover -xopenmp=noopt'
                0020 else
                0021     FFLAGS='-u -r8const -xopenmp'
                0022 fi
                0023 
                0024 if test "x$IEEE" = x ; then
                0025     #  No need for IEEE-754
                0026     FOPTIM='-fast -m32 -xvector=lib -xpad=local'
                0027     LIBS="$LIBS -lmopt -lsunmath"
                0028 else
                0029     #  Try to follow IEEE-754
                0030 #    FOPTIM='-O0 -m32'
                0031     FOPTIM='-fast -m32 -xpad=local -fsimple=1'
                0032 fi
                0033 F90FLAGS=$FFLAGS
                0034 F90OPTIM=$FOPTIM
                0035 CFLAGS='-O3 -m32 -xopenmp'
                0036 
                0037 if [ "x$NETCDF_ROOT" != x ] ; then
                0038     INCLUDEDIR="${NETCDF_ROOT}/include"
                0039     INCLUDES="-I${NETCDF_ROOT}/include"
                0040     LIBDIR="${NETCDF_ROOT}/lib"
                0041     LIBS="-L${NETCDF_ROOT}/lib"
                0042 elif [ "x$NETCDF_HOME" != x ]; then
                0043     INCLUDEDIR="${NETCDF_HOME}/include"
                0044     INCLUDES="-I${NETCDF_HOME}/include"
                0045     LIBDIR="${NETCDF_HOME}/lib"
                0046     LIBS="-L${NETCDF_HOME}/lib"
                0047 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
                0048     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
                0049     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
                0050     INCLUDEDIR="${NETCDF_INC}"
                0051     INCLUDES="-I${NETCDF_INC}"
                0052     LIBDIR="${NETCDF_LIB}"
                0053     LIBS="-L${NETCDF_LIB}"
                0054 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
                0055     INCLUDEDIR="${NETCDF_INCDIR}"
                0056     INCLUDES="-I${NETCDF_INCDIR}"
                0057     LIBDIR="${NETCDF_LIBDIR}"
                0058     LIBS="-L${NETCDF_LIBDIR}"
                0059 elif test -d /usr/include/netcdf ; then
                0060     INCLUDES='-I/usr/include/netcdf'
                0061 elif test -d /usr/local/netcdf ; then
                0062     INCLUDES='-I/usr/local/netcdf/include'
                0063     LIBS='-L/usr/local/netcdf/lib'
                0064 elif test -d /usr/local/include/netcdf.inc ; then
                0065     INCLUDES='-I/usr/local/include'
                0066     LIBS='-L/usr/local/lib'
                0067 fi
                0068 
                0069 INCLUDES="$INCLUDES -I$MPI_INC_DIR"
                0070 INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
                0071 MPIINCLUDEDIR="$MPI_INC_DIR"
                0072 MPI_HEADER_FILES=${MPI_HEADER_FILES:='mpif.h mpiof.h'}
                0073 MPI_HEADER_FILES_INC=${MPI_HEADER_FILES_INC:='./mpi_headers/mpif.h ./mpi_headers/mpiof.h'}
                0074