1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf90+mpi_xd1,v 1.1 2008/06/24 10:28:01 mlosch Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
# tested on xd1.awi.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 |
# pgf90 7.1-1 64-bit target on x86-64 Linux -tp k8-64 |
9 |
# Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. |
10 |
# Copyright 2000-2007, STMicroelectronics, Inc. All Rights Reserved. |
11 |
|
12 |
#FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
13 |
|
14 |
FC='mpif90' |
15 |
CC='mpicc' |
16 |
LINK='mpif90' |
17 |
|
18 |
MPI='true' |
19 |
|
20 |
DEFINES='-DWORDLENGTH=4' |
21 |
CPP='/usr/bin/cpp -P -traditional' |
22 |
EXTENDED_SRC_FLAG='-Mextend' |
23 |
|
24 |
INCLUDES='-I/usr/mpich/mpich-1.2.6-pgi524/include -I/opt/awi/netcdf-3.6.0-p1/include' |
25 |
LIBS='-L/usr/mpich/mpich-1.2.6-pgi524/lib -Mmpi -L/opt/awi/netcdf-3.6.0-p1/lib -lnetcdf' |
26 |
|
27 |
if test "x$IEEE" = x ; then |
28 |
# No need for IEEE-754 |
29 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk" |
30 |
FOPTIM='-O2 -Munroll' |
31 |
else |
32 |
# Try to follow IEEE-754 |
33 |
FFLAGS="$FFLAGS -byteswapio" |
34 |
FOPTIM='-tp amd64 -O0 -Munroll -Kieee' |
35 |
fi |
36 |
#FFLAGS=$FFLAGS' -mcmodel=medium' |
37 |
#- might want to use '-r8' for fizhi pkg: |
38 |
#FFLAGS="$FFLAGS -r8" |