1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf90+mpi_greenplanet,v 1.1 2010/04/05 20:58:31 yunx Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
# tested on greenplanet.ps.uci.edu |
7 |
# Linux greenplanet.ps.uci.edu 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux |
8 |
# pgf90 8.0-4 64-bit target on x86-64 Linux -tp penryn-64 |
9 |
# Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. |
10 |
# Copyright 2000-2009, STMicroelectronics, Inc. All Rights Reserved. |
11 |
|
12 |
FC='mpif90' |
13 |
CC='mpicc' |
14 |
LINK='mpif90' |
15 |
|
16 |
MPI='true' |
17 |
|
18 |
DEFINES='-DWORDLENGTH=4' |
19 |
CPP='/usr/bin/cpp -P -traditional' |
20 |
EXTENDED_SRC_FLAG='-Mextend' |
21 |
|
22 |
INCLUDES='-I/sopt/mpi/mpich/pgi/include -I/sopt/netcdf/netcdf3-gcc-serial/include' |
23 |
LIBS='-L/sopt/mpi/mpich/pgi/lib -L/sopt/netcdf/netcdf3-gcc-serial/lib' |
24 |
|
25 |
if test "x$IEEE" = x ; then |
26 |
# No need for IEEE-754 |
27 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk" |
28 |
FOPTIM='-O2 -Munroll' |
29 |
else |
30 |
# Try to follow IEEE-754 |
31 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk" |
32 |
FOPTIM='-tp amd64 -O0 -Munroll -Kieee' |
33 |
fi |
34 |
#- might want to use '-r8' for fizhi pkg: |
35 |
#FFLAGS="$FFLAGS -r8" |