Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/sp6_ncar 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
7e1b557b2a Cons*0001 #!/bin/bash
                0002 #
1a97cf62e0 Jean*0003 if test "x$MPI" = xtrue ; then
                0004   CC='mpcc_r -q64'
                0005   FC='mpxlf_r -q64'
                0006   LINK='mpxlf_r -q64'
                0007 else
                0008   CC='xlc_r -q64'
                0009   FC='xlf_r -q64'
                0010   LINK='xlf_r -q64'
                0011 fi
7e1b557b2a Cons*0012 
1a97cf62e0 Jean*0013 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
                0014 S64='$(TOOLSDIR)/set64bitConst.sh'
7e1b557b2a Cons*0015 DEFINES='-DTARGET_AIX -DWORDLENGTH=4 -DNML_TERMINATOR'
                0016 CPP='/lib/cpp -P'
1a97cf62e0 Jean*0017 
                0018 #FFLAGS="$FFLAGS -qfixed=72"
                0019 FFLAGS="$FFLAGS -qfixed=132"
                0020 
7e1b557b2a Cons*0021 if test "x$IEEE" = x ; then
                0022     #  No need for IEEE-754
                0023     FOPTIM='-O3 -Q -qarch=pwr6 -qtune=pwr6 -qcache=auto -qmaxmem=-1'
1a97cf62e0 Jean*0024     CFLAGS=$FOPTIM
7e1b557b2a Cons*0025 else
                0026     FOPTIM='-O3 -qstrict -Q -qarch=pwr6 -qtune=pwr6 -qcache=auto -qmaxmem=-1'
1a97cf62e0 Jean*0027     CFLAGS=$FOPTIM
7e1b557b2a Cons*0028 fi
                0029 
                0030 HPMTINC=''
                0031 HPMTLIB='-lhpm_r -lpmapi'
                0032 GSLINC='-I/contrib/gsl-1.12/include'
                0033 GSLLIB='-L/contrib/gsl-1.12/gsl-1.5/lib64 -lgsl -lgslcblas'
                0034 PAPIINC='-I/contrib/papi-3.6.2/include'
                0035 PAPILIB='-L/contrib/papi-3.6.2/lib -lpapi -lpmapi'
                0036 
1a97cf62e0 Jean*0037 INCLUDES='-I/contrib/netcdf-3.6.2/include'
                0038 LIBS='-lmass -L/contrib/netcdf-3.6.2/lib'
                0039 
                0040 if test "x$MPI" = xtrue ; then
                0041     INCLUDES="-I/usr/lpp/ppe.poe/include/thread64 $INCLUDES"
15978f0412 Jean*0042     #- used for parallel (MPI) DIVA
1a97cf62e0 Jean*0043     MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread64'
15978f0412 Jean*0044    #MPI_HEADER_FILES='mpif.h'
1a97cf62e0 Jean*0045 fi