/[MITgcm]/MITgcm/tools/build_options/linux_ia64_ifort+mpi_swell
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_ia64_ifort+mpi_swell

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by heimbach, Sat Apr 5 21:43:09 2008 UTC revision 1.4 by jmc, Sun Mar 21 17:58:17 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  #  #
3  #  Ed Hill  # $Header$
4  #  # $Name$
5  #  tested on faulks, 20030818  
6  #  # Build options for Harvard cluster "swell"
 #  Build options for the intel 8.0 fortran compiler  
 #  the compiler is now called ifort (not ifc) and it appears to  
 #  need -DWORDLENGTH=1 and not -DWORDLENGTH=4 (which is what ifc 6.0) used to have.  
 #  ph: use ifort compiler options -convert big_endian -assume byterecl  
7    
8  FC=mpif90  FC=mpif90
9  F90C=mpif90  F90C=mpif90
10  CC=mpicc  CC=mpicc
 DEFINES='-DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI'  
11  LINK='mpif90'  LINK='mpif90'
12    
13    DEFINES='-DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI'
14  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
15  #INCLUDES='-I/usr/include/netcdf'  EXTENDED_SRC_FLAG='-132'
16    
17    #INCLUDES='-I/usr/include/netcdf'
18  INCLUDES='-I/opt/netcdf-3.6.0-p1/include -I/usr/local/topspin/mpi/mpich/include'  INCLUDES='-I/opt/netcdf-3.6.0-p1/include -I/usr/local/topspin/mpi/mpich/include'
19  LIBS='-L/opt/netcdf-3.6.0-p1/lib -L/usr/local/topspin/mpi/mpich/lib64  -lmpich_i -lpthread'  LIBS='-L/opt/netcdf-3.6.0-p1/lib -L/usr/local/topspin/mpi/mpich/lib64 -lmpich_i -lpthread'
20    
21  #  Note that the -mp switch is for ieee "maintain precision" and is  #  Note that the -mp switch is for ieee "maintain precision" and is
22  #  roughly equivalent to -ieee  #  roughly equivalent to -ieee
23  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
24  # lz(   FOPTIM='-O3 -align' )      FFLAGS="$FFLAGS -w95 -g -convert big_endian -assume byterecl"
25      FOPTIM=      FOPTIM='-O3 -align'
26  #P3 FOPTIM=$FOPTIM' -tpp6 -xWKM'  #P3 FOPTIM=$FOPTIM' -tpp6 -xWKM'
27  #P4 FOPTIM=$FOPTIM' -tpp7 -xWKM'  #P4 FOPTIM=$FOPTIM' -tpp7 -xWKM'
     FFLAGS='-132 -r8 -i4 -w95 -g -convert big_endian -assume byterecl'  
     FOPTIM='-O3 -align'  
28  else  else
29      FOPTIM='-O0 -noalign'      FOPTIM='-O0 -noalign'
30      FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl'      FFLAGS="$FFLAGS -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl"
31     #FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB'     #FFLAGS="$FFLAGS -mp -w95 -W0 -WB"
32  fi  fi
33    #- might want to use '-r8' for fizhi pkg:
34    #FFLAGS="$FFLAGS -r8"
   
 #if test "x$IEEE" = x ; then  
 #    FFLAGS='-Wimplicit -Wunused -Wuninitialized  -fno-second-underscore'  
 #    FOPTIM='-O3 -funroll-loops'  
 #else  
 #    FFLAGS='-Wimplicit -Wunused -ffloat-store'  
 #    FOPTIM='-O0 '  
 #fi  
35    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.22