| 1 |
dimitri |
1.1 |
#!/bin/bash |
| 2 |
|
|
|
| 3 |
|
|
FC=mpif77 |
| 4 |
|
|
CC=mpicc |
| 5 |
dimitri |
1.3 |
#LINK=mpif77 |
| 6 |
dimitri |
1.1 |
F90=mpif90 |
| 7 |
|
|
|
| 8 |
dimitri |
1.2 |
DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR' |
| 9 |
dimitri |
1.3 |
#CPP='cpp -traditional -P' |
| 10 |
dimitri |
1.1 |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
| 11 |
|
|
GET_FC_VERSION="--version" |
| 12 |
|
|
OMPFLAG='-fopenmp' |
| 13 |
|
|
|
| 14 |
|
|
NOOPTFLAGS='-O0' |
| 15 |
|
|
NOOPTFILES='' |
| 16 |
|
|
|
| 17 |
dimitri |
1.3 |
INCLUDES="$INCLUDES -I/usr/include/mpich" |
| 18 |
|
|
INCLUDEDIRS="$INCLUDEDIRS /usr/include/mpich" |
| 19 |
|
|
MPIINCLUDEDIR="/usr/include/mpich" |
| 20 |
|
|
|
| 21 |
|
|
$INCLUDEDIRS='/usr/include/mpich' |
| 22 |
|
|
LIBDIR='-L/usr/lib' |
| 23 |
|
|
LIBS='-L/usr/lib -lmpich' |
| 24 |
dimitri |
1.1 |
|
| 25 |
|
|
# Requires gfortran from 2006 onwards for -fconvert=big-endian |
| 26 |
|
|
FFLAGS="$FFLAGS -fconvert=big-endian -fimplicit-none" |
| 27 |
|
|
# for big objects: |
| 28 |
|
|
FFLAGS="$FFLAGS -fPIC" |
| 29 |
|
|
FOPTIM='-O3 -funroll-loops' |
| 30 |
|
|
CFLAGS="$FOPTIM -fPIC" |
| 31 |
|
|
F90FLAGS=$FFLAGS |
| 32 |
|
|
F90OPTIM=$FOPTIM |