9 |
# DON'T FORGET to set environment variable MPI_INC_DIR to the include |
# DON'T FORGET to set environment variable MPI_INC_DIR to the include |
10 |
# directory of your MPI implementation |
# directory of your MPI implementation |
11 |
|
|
12 |
|
#------- |
13 |
|
# run with OpenMP: needs to set environment var. OMP_NUM_THREADS |
14 |
|
# and generally, needs to increase the stack-size: |
15 |
|
# - sh,bash: |
16 |
|
# > export OMP_NUM_THREADS=2 |
17 |
|
# > export KMP_STACKSIZE=400m |
18 |
|
# - csh,tcsh: |
19 |
|
# > setenv OMP_NUM_THREADS 2 |
20 |
|
# > setenv KMP_STACKSIZE 400m |
21 |
|
# NOTE: need to set KMP_STACKSIZE in ~/.tcshrc (but curiously, works |
22 |
|
# without OMP_NUM_THREADS in ~/.tcshrc). |
23 |
|
#------- |
24 |
|
|
25 |
FC=${FC:=mpif77} |
FC=${FC:=mpif77} |
26 |
F90C=${F90C:=mpif90} |
F90C=${F90C:=mpif90} |
27 |
CC=${CC:=mpicc} |
CC=${CC:=mpicc} |
29 |
|
|
30 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
31 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
32 |
F90FIXEDFORMAT='-fixed -Tf' |
F90FIXEDFORMAT='-fixed -Tf' |
33 |
EXTENDED_SRC_FLAG='-132' |
EXTENDED_SRC_FLAG='-132' |
34 |
|
OMPFLAG='-openmp' |
35 |
|
|
36 |
NOOPTFLAGS='-O0 -g -m64 -fPIC' |
NOOPTFLAGS='-O0 -g -m64 -fPIC' |
37 |
NOOPTFILES='' |
NOOPTFILES='' |
41 |
LIBS='' |
LIBS='' |
42 |
|
|
43 |
if test "x$DEVEL" != x ; then |
if test "x$DEVEL" != x ; then |
44 |
FFLAGS='-m64 -fPIC -r8 -i4 -convert big_endian -assume byterecl -O0 -g -debug all -debug-parameters all -noalign -fp-stack-check -check all -fpe0 -traceback -ftrapuv -fp-model strict -warn all' |
FFLAGS="$FFLAGS -m64 -fPIC -convert big_endian -assume byterecl -O0 -g -debug all -debug-parameters all -noalign -fp-stack-check -check all -fpe0 -traceback -ftrapuv -fp-model strict -warn all" |
45 |
else |
else |
46 |
FFLAGS='-m64 -fPIC -r8 -i4 -W0 -WB -convert big_endian -assume byterecl' |
FFLAGS="$FFLAGS -m64 -fPIC -W0 -WB -convert big_endian -assume byterecl" |
47 |
fi |
fi |
48 |
|
#- might want to use '-r8' for fizhi pkg: |
49 |
|
#FFLAGS="$FFLAGS -r8" |
50 |
|
|
51 |
if test "x$GENERIC" != x ; then |
if test "x$GENERIC" != x ; then |
52 |
PROCF=-axSSE4.2,SSE4.1,SSSE3,SSE3,SSE2 |
PROCF=-axSSE4.2,SSE4.1,SSSE3,SSE3,SSE2 |