Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/unsupported/linux_ia32_ifort+authors 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
9d1680d2c3 Jean*0001 #!/bin/bash
                0002 
                0003 #  Build options for the intel 9.0 fortran compiler
                0004 #  ph: use ifort compiler options -convert big_endian -assume byterecl
                0005 
                0006 #  tested on faulks (FC.6)
                0007 #  was also tested on hugo (FC.4, FC.9), eddy (FC.5)
                0008 
                0009 # OpenMP : Tested on hugo, eddy and faulks
                0010 #-------
a2b7e9952a Jean*0011 # run with OpenMP: needs to set environment var. OMP_NUM_THREADS
9d1680d2c3 Jean*0012 #    and generally, needs to increase the stack-size:
                0013 #   -  sh,bash:
                0014 #     > export OMP_NUM_THREADS=2
                0015 #     > export KMP_STACKSIZE=400m
                0016 #   - csh,tcsh:
                0017 #     > setenv OMP_NUM_THREADS 2
                0018 #     > setenv KMP_STACKSIZE 400m
                0019 #-------
                0020 
                0021 FC=/usr/local/pkg/intel/intel_fc_90/bin/ifort
a5566b88fb Jean*0022 F90C=$FC
                0023 LINK="$FC -i-static -no-ipo"
9d1680d2c3 Jean*0024 
                0025 DEFINES='-DWORDLENGTH=4'
                0026 CPP='cpp  -traditional -P'
a2b7e9952a Jean*0027 F90FIXEDFORMAT='-fixed -Tf'
9d1680d2c3 Jean*0028 EXTENDED_SRC_FLAG='-132'
a5566b88fb Jean*0029 GET_FC_VERSION="--version"
9d1680d2c3 Jean*0030 OMPFLAG='-openmp'
                0031 
                0032 INCLUDES='-I/usr/local/pkg/netcdf/netcdf-3.5.1/include'
                0033 
                0034 #  Note that the -mp switch is for ieee "maintain precision" and is
                0035 #  roughly equivalent to -ieee
                0036 if test "x$IEEE" = x ; then
                0037     FOPTIM='-O3 -align'
                0038 #P3 FOPTIM=$FOPTIM' -tpp6 -xWKM'
                0039 #P4 FOPTIM=$FOPTIM' -tpp7 -xWKM'
a2b7e9952a Jean*0040     FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl"
9d1680d2c3 Jean*0041 else
                0042     FOPTIM='-O0 -noalign -check all'
a2b7e9952a Jean*0043     FFLAGS="$FFLAGS -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl"
                0044    #FFLAGS="$FFLAGS -mp -w95 -W0 -WB"
9d1680d2c3 Jean*0045 fi
a2b7e9952a Jean*0046 #- might want to use '-r8' for fizhi pkg:
                0047 #FFLAGS="$FFLAGS -r8"
                0048 
9d1680d2c3 Jean*0049 F90FLAGS=$FFLAGS
                0050 F90OPTIM=$FOPTIM
                0051