#!/bin/bash
#
#  $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ppc32_xlf,v 1.2 2007/07/31 22:24:51 ce107 Exp $
#

#  tested on Big Red, ce107 Aug 30 2007
#  using the following invocation:
#    ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/linux_ppc_xlf_bigred+mpi -mpi


S64='$(TOOLSDIR)/set64bitConst.sh'
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DNML_TERMINATOR'
INCLUDES='-I/N/soft/linux-sles9-ppc64/netcdf-3.6.1-ibm-32/include'
CPP='/lib/cpp -traditional -P'
FC='mpif77 -q32'
CC='mpicc -q32'
LINK='mpif77 -q32'
LIBS='-L/N/soft/linux-sles9-ppc64/netcdf-3.6.1-ibm-32/lib -lnetcdf' 
FFLAGS='-qfixed=132'
OMPFLAG='-qsmp=omp'
if test "x$IEEE" = x ; then
    #  No need for IEEE-754
FOPTIM='-O5 -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1 -qipa=noobject:partition=large:threads'
CFLAGS='-O5 -qinlglue -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1 -qipa=noobject:partition=large:threads'
else
FOPTIM='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
CFLAGS='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
fi
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
INCLUDES="$INCLUDES -I$MPI_INC_DIR"
INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
MPIINCLUDEDIR="$MPI_INC_DIR"
MPI_HEADER_FILES='mpif.h mpiof.h'
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h'

