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