1 |
#!/bin/bash |
2 |
# |
3 |
# tested on pleiades using: |
4 |
# module purge |
5 |
# module load modules comp/intel/10.1.011_64 mpi/mpt.1.20+patch10520 |
6 |
|
7 |
|
8 |
CPP='/lib/cpp -traditional -P' |
9 |
FC=ifort |
10 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
11 |
|
12 |
LIBS='-lmpi' |
13 |
INCLUDES='-I/nasa/sgi/mpt/1.20+patch10520/include' |
14 |
INCLUDEDIRS='/nasa/sgi/mpt/1.20+patch10520/include' |
15 |
MPIINCLUDEDIR='/nasa/sgi/mpt/1.20+patch10520/include' |
16 |
MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h' |
17 |
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h' |
18 |
#PAPIINC='-I/usr/local/include' |
19 |
#PAPILIB='-L/usr/local/lib -lpapi' |
20 |
|
21 |
if test "x$IEEE" = x ; then |
22 |
# No need for IEEE-754 |
23 |
FFLAGS='-fp-model precise -132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
24 |
FOPTIM='-O3 -align' |
25 |
NOOPTFLAGS='-O1' |
26 |
NOOPTFILES='phy_radiat.F fizhi_lsm.F fizhi_clockstuff.F' |
27 |
else |
28 |
# Try to follow IEEE-754 |
29 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
30 |
FOPTIM='-O0 -noalign' |
31 |
fi |