1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf77+mpi_ncar,v 1.2 2010/03/21 21:34:01 jmc Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
# Build options for Suse SLES-8.1 Opteron |
7 |
# tested on (Linux ln0127en 2.4.21-143-numa #1 SMP Fri Oct 31 00:17:52 UTC 2003 x86_64 unknown) system 20041512 |
8 |
# |
9 |
|
10 |
FC=mpif77 |
11 |
CC=mpicc |
12 |
LINK=mpif77 |
13 |
|
14 |
DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77' |
15 |
CPP='cpp -traditional -P' |
16 |
EXTENDED_SRC_FLAG='-Mextend' |
17 |
GET_FC_VERSION="-V" |
18 |
|
19 |
MAKEDEPEND=/usr/X11R6/bin/makedepend |
20 |
INCLUDES=-I/opt/mpich-gm/include |
21 |
|
22 |
NOOPTFLAGS='-O0' |
23 |
|
24 |
if test "x$IEEE" = x ; then |
25 |
# No need for IEEE-754 |
26 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk -Ktrap=fp" |
27 |
FOPTIM='-tp k8-64 -pc=64 -fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform' |
28 |
else |
29 |
# Try to follow IEEE-754 |
30 |
FFLAGS="$FFLAGS -byteswapio -Ktrap=fp" |
31 |
FOPTIM='-tp k8-64 -pc=64 -fastsse -O0 -Msmart -Kieee -Mvect=cachesize:1048576,transform' |
32 |
fi |
33 |
#- might want to use '-r8' for fizhi pkg: |
34 |
#FFLAGS="$FFLAGS -r8" |