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