Skip to content
Snippets Groups Projects
Commit 8c1bfe0b authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Adjust opts file to CMake, update existing files.

Opts files for autotools are renamed to autotools-*.opts,
outdated flags were removed.
(reviewed by martinb)


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@14364 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 8d58729c
No related branches found
No related tags found
No related merge requests found
GXX_WARNING_OPTS=" \
-Wall \
-Wunused \
-Wmissing-include-dirs \
-Wcast-align \
-Wno-sign-compare \
-Wno-unused-parameter"
# 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 \
-g -O2"
CONFIGURE_FLAGS="\
CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
--disable-documentation \
--disable-parallel \
--disable-mpiruntest"
# for CO2 and CO2ni tests
# --enable-experimental-grid-extensions \
# --with-alugrid=PATH_TO_ALUGrid \
# need to be set in the configure flags
GXX_WARNING_OPTS=" \
-Wall \
-Wunused \
-Wmissing-include-dirs \
-Wcast-align \
-Wno-sign-compare \
-Wno-unused-parameter"
# 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 \
-ffast-math \
-fno-finite-math-only \
-O3 \
-march=native \
-DNDEBUG=1"
# configure flags
CONFIGURE_FLAGS=" \
CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
--disable-documentation \
--disable-parallel \
--disable-mpiruntest"
# for CO2 and CO2ni tests
# --enable-experimental-grid-extensions \
# --with-alugrid=PATH_TO_ALUGrid \
# need to be set in the configure flags
......@@ -17,17 +17,11 @@ GXX_OPTS=" \
-fstrict-overflow \
-g"
# do not write a file .dune.resume to the home directory
RESUME_FILE=/dev/null
CONFIGURE_FLAGS="\
CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
--enable-fieldvector-size-is-method \
--disable-documentation \
--disable-parallel \
--disable-mpiruntest"
CMAKE_FLAGS="\
-DCMAKE_CXX_FLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
"
# for CO2 and CO2ni tests
# --enable-experimental-grid-extensions \
# --with-alugrid=PATH_TO_ALUGrid \
# need to be set in the configure flags
\ No newline at end of file
# -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS=TRUE \
# need to be set in the configure flags
# and the module dune-alugrid must be present
......@@ -25,14 +25,11 @@ GXX_OPTS=" \
RESUME_FILE=/dev/null
# configure flags
CONFIGURE_FLAGS=" \
CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
--enable-fieldvector-size-is-method \
--disable-documentation \
--disable-parallel \
--disable-mpiruntest"
CMAKE_FLAGS=" \
-DCMAKE_CXX_FLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
"
# for CO2 and CO2ni tests
# --enable-experimental-grid-extensions \
# --with-alugrid=PATH_TO_ALUGrid \
# need to be set in the configure flags
\ No newline at end of file
# -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS=TRUE \
# need to be set in the CMake flags
# and the module dune-alugrid must be present
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment