optim.opts 786 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 30
CMAKE_FLAGS=" \
  -DCMAKE_CXX_FLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
  "
31

32
# for CO2 and CO2ni tests
33 34 35
# -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS=TRUE \
# need to be set in the CMake flags
# and the module dune-alugrid must be present