optim.opts 876 Bytes
Newer Older
1 2
GXX_WARNING_OPTS=" \
    -Wall \
3
    -Wunused \
4 5 6 7
    -Wmissing-include-dirs \
    -Wcast-align \
    -Wno-sign-compare \
    -Wno-unused-parameter"
8

9 10 11 12 13 14 15 16 17
# additional -W flags for g++ which will lead to many warnings in
# other dune modules
#    -Wextra \
#    -Wfloat-equal \
#    -Wstrict-overflow \

GXX_OPTS=" \
    -fno-strict-aliasing \
    -fstrict-overflow \
18 19
    -ffast-math \
    -fno-finite-math-only \
20 21 22
    -O3 \
    -march=native \
    -DNDEBUG=1"
23

24 25 26
# do not write a file .dune.resume to the home directory
RESUME_FILE=/dev/null

27
# configure flags 
28 29
CONFIGURE_FLAGS=" \
  CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
Christoph Grueninger's avatar
Christoph Grueninger committed
30
  --enable-fieldvector-size-is-method \
31
  --disable-documentation \
32
  --disable-parallel \
33 34
  --disable-mpiruntest"

35 36 37 38
# for CO2 and CO2ni tests
# --enable-experimental-grid-extensions \
# --with-alugrid=PATH_TO_ALUGrid \
# need to be set in the configure flags