1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf77+mpi_xd1,v 1.5 2006/03/07 04:11:20 mlosch Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
# tested on xd1.awi-bremerhaven.de |
7 |
# Linux xd1-420-6 2.4.21_H_01_01 #6 SMP Wed Nov 3 15:30:06 PST 2004 x86_64 unknownx |
8 |
# pgf77 5.2-4 |
9 |
# Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. |
10 |
# Copyright 2000-2004, STMicroelectronics, Inc. All Rights Reserved. |
11 |
|
12 |
#FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
13 |
|
14 |
FC='mpif77' |
15 |
CC='mpicc' |
16 |
LINK='mpif77' |
17 |
CPP='/usr/bin/cpp -P -traditional' |
18 |
|
19 |
MPI='true' |
20 |
DEFINES='-DWORDLENGTH=4' |
21 |
INCLUDES='-I/usr/mpich/mpich-1.2.6-pgi524/include -I/opt/awi/netcdf-3.6.0-p1/include' |
22 |
LIBS='-L/usr/mpich/mpich-1.2.6-pgi524/lib -Mmpi -Mfmpi -L/opt/awi/netcdf-3.6.0-p1/lib -lnetcdf' |
23 |
|
24 |
if test "x$IEEE" = x ; then |
25 |
# No need for IEEE-754 |
26 |
FFLAGS='-byteswapio -Mnodclchk -Mextend' |
27 |
FOPTIM='-O2 -Munroll' |
28 |
else |
29 |
# Try to follow IEEE-754 |
30 |
FFLAGS='-byteswapio -r8 -Mnodclchk -Mextend' |
31 |
FOPTIM='-tp amd64 -O0 -Munroll -Kieee' |
32 |
fi |