Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/unsupported/sp4+mpi_edvir1 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
7ca7d57589 Mart*0001 #!/bin/bash
                0002 #
                0003 # 
                0004 # tested on edvir1.awi-bremerhaven.de
                0005 # uname -a: AIX edvir1 2 5 0010117A4C00
                0006 #
                0007 
                0008 S64='$(TOOLSDIR)/set64bitConst.sh'
                0009 MAKEDEPEND=makedepend
0d96028424 Mart*0010 DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_AIX -DWORDLENGTH=4 -DNML_TERMINATOR'
                0011 HAVE_CLOC='true'
                0012 HAVE_SETRLSTK='true'
                0013 HAVE_STAT='true'
7ca7d57589 Mart*0014 
0d96028424 Mart*0015 MPI='true'
7ca7d57589 Mart*0016 INCLUDES='-I/usr/lpp/ppe.poe/include/thread64 -I/edvir1/soft/netcdf-3.5.1/64/include'
                0017 CPP='/lib/cpp -P'
                0018 CC='mpcc_r -q64'
                0019 FC='mpxlf95_r -q64'
                0020 LINK='mpxlf95_r -q64'
                0021 LIBS='-L/export/soft/mass/4.1/aix5/lib -lmass -L/edvir1/soft/netcdf-3.5.1/64/lib -lnetcdf'
0d96028424 Mart*0022 
463f21d9ce Mart*0023 # increase allowed line length  
                0024 FFLAGS='-qfixed=132'
                0025 # this initializes all reals to NaNQ and all integers to -1
                0026 #FFLAGS=${FFLAGS}' -qinitauto=FF' 
7ca7d57589 Mart*0027 if test "x$IEEE" = x ; then
                0028     #  No need for IEEE-754
463f21d9ce Mart*0029     FOPTIM='-O4 -qmaxmem=-1'
                0030     # if the above takes too long use a slightly less aggressive optimization
                0031     #FOPTIM='-O3 -qhot -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
                0032     # for some unknown reason, the -qhot option (part of -O4 is not so hot 
                0033     # with these files (compilation takes forever), therefore we overwrite it
                0034     # here
                0035     NOOPTFILES='ini_curvilinear_grid.F  mon_stats_rs.F'
                0036     NOOPTFLAGS=${FOPTIM}' -qnohot'
7ca7d57589 Mart*0037 else
                0038     #  Try to follow IEEE-754
463f21d9ce Mart*0039     FOPTIM='-O3 -qstrict -qstrictieeemod -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
7ca7d57589 Mart*0040 fi
                0041 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
                0042