8 |
# formally for gcc-gfortran 4.3* |
# formally for gcc-gfortran 4.3* |
9 |
# + with gcc-gfortran v4.3.0 on FC9 |
# + with gcc-gfortran v4.3.0 on FC9 |
10 |
# It fixes the ' \' versus ' &' terminator problem ; |
# It fixes the ' \' versus ' &' terminator problem ; |
11 |
# some namelist problems remain with old version (The biggest seems |
# some namelist problems remain with old version (The biggest seems |
12 |
# to be the inability to support namelist syntax such as: |
# to be the inability to support namelist syntax such as: |
13 |
# fields(1,1) = 'UVELSLT ','VVELSLT ','WVELSLT ', |
# fields(1,1) = 'UVELSLT ','VVELSLT ','WVELSLT ', |
14 |
# which results in run-time errors). |
# which results in run-time errors). |
15 |
|
|
16 |
|
#------- |
17 |
|
# run with OpenMP: needs to set environment var. OMP_NUM_THREADS |
18 |
|
# and generally, needs to increase the thread stack-size: |
19 |
|
# - sh,bash: |
20 |
|
# > export OMP_NUM_THREADS=2 |
21 |
|
# > export GOMP_STACKSIZE=400m |
22 |
|
# - csh,tcsh: |
23 |
|
# > setenv OMP_NUM_THREADS 2 |
24 |
|
# > setenv GOMP_STACKSIZE 400m |
25 |
|
#------- |
26 |
|
|
27 |
FC=gfortran |
FC=gfortran |
28 |
F90C=gfortran |
F90C=gfortran |
31 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
32 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
33 |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
34 |
|
OMPFLAG='-fopenmp' |
35 |
|
|
36 |
if test "x$DEVEL" != x ; then |
if test "x$DEVEL" != x ; then |
37 |
FFLAGS='-g -Wall -W -ffpe-trap=invalid,zero,overflow -fbounds-check' |
FFLAGS='-g -Wall -W -ffpe-trap=invalid,zero,overflow -fbounds-check' |