Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/darwin_ia32_pgf95_trane 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
561abb14fc Mart*0001 #!/bin/bash
6144427bd2 Jean*0002 #
b767b22dbe Jean*0003 # build options files for trane (with or without MPI)
561abb14fc Mart*0004 # uname -a
                0005 # Darwin trane.evsc.virginia.edu 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
                0006 #
b767b22dbe Jean*0007 # without MPI: genmake2 -of darwin_ia32_pgf95_trane
                0008 #    with MPI: genmake2 -of darwin_ia32_pgf95_trane -mpi
561abb14fc Mart*0009 
b767b22dbe Jean*0010 if test "x$MPI" = xtrue ; then
                0011   CC='mpicc'
                0012   FC='mpif90'
                0013   LINK='mpif90'
                0014 else
                0015   CC='pgcc'
                0016   FC='pgf95'
                0017   LINK='pgf90'
                0018 fi
561abb14fc Mart*0019 
                0020 DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
                0021 CPP='/usr/bin/cpp -traditional -P'
b767b22dbe Jean*0022 # make clean removes also these files
                0023 RMFILES='*.oo'
                0024 EXTENDED_SRC_FLAG='-Mextend'
                0025 
                0026 FFLAGS="$FFLAGS -byteswapio"
561abb14fc Mart*0027 
                0028 if test "x$IEEE" = x ; then
                0029    #  No need for IEEE-754
                0030    FOPTIM='-fast -Mipa=fast,inline,safe'
                0031 else
                0032    #  Try to follow IEEE-754
b767b22dbe Jean*0033    FFLAGS="$FFLAGS -Mnodclchk -Ktrap=fp -Kieee"
561abb14fc Mart*0034    FOPTIM=
                0035 fi
b767b22dbe Jean*0036 CFLAGS='-fast -Mipa=fast,inline,safe'
                0037 
                0038 # specific location for trane:
                0039 MPI_INC_DIR="/common/mpich2-mx-1.1.1p1..5/src/include"
                0040 if test "x$MPI" = xtrue ; then
                0041     INCLUDES="$INCLUDES -I$MPI_INC_DIR"
                0042 fi 
                0043 
                0044 NETCDF_INCDIR="/common/usr/local/include"
                0045 INCLUDES="$INCLUDES -I$NETCDF_INCDIR"
                0046 LIBS="-L/common/usr/local/lib"
                0047