25 |
NOOPTFILES='' |
NOOPTFILES='' |
26 |
|
|
27 |
FFLAGS="$FFLAGS -h byteswapio" |
FFLAGS="$FFLAGS -h byteswapio" |
28 |
if test "$OMP" = true ; then |
if test "x$OMP" = xtrue ; then |
29 |
|
# alternative if-statement: if test ! "x$OMP" = x ; then |
30 |
|
# this flag does not have the right name, but it does the right thing: |
31 |
|
# write namelists into real files on the disk |
32 |
|
# (in open_copy_data_file and eeset_parm) |
33 |
|
# DEFINES="$DEFINES -DTARGET_CRAYXT" |
34 |
# for some reason this solves a problem with an unexpected |
# for some reason this solves a problem with an unexpected |
35 |
# "expectStatus=20" when using OpenMP with hyperthreads |
# "expectStatus=20" when using OpenMP with hyperthreads |
36 |
NOOPTFILES="${NOOPTFILES} diagnostics_switch_onoff.F mon_init.F mon_set_iounit.F" |
NOOPTFILES="${NOOPTFILES} diagnostics_switch_onoff.F mon_init.F mon_set_iounit.F" |
37 |
else |
else |
38 |
|
# be default the cray compiler uses omp, turn it off here |
39 |
FFLAGS="$FFLAGS -hnoomp" |
FFLAGS="$FFLAGS -hnoomp" |
40 |
fi |
fi |
41 |
# source file listing with compiler messages: |
# source file listing with compiler messages: |
63 |
fi |
fi |
64 |
fi |
fi |
65 |
|
|
66 |
|
if test "x$OMP" = xtrue ; then |
67 |
|
# this is a necessary hack to have -homp after the optimization flags, |
68 |
|
# because -O0 overrides the default to have -homp |
69 |
|
FOPTIM="$FOPTIM $OMPFLAG" |
70 |
|
OMPFLAG=" " |
71 |
|
fi |
72 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
73 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
74 |
CFLAGS="-O0 $MCMODEL" |
CFLAGS="-O0 $MCMODEL" |