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=" \ ...@@ -17,17 +17,11 @@ GXX_OPTS=" \
-fstrict-overflow \ -fstrict-overflow \
-g" -g"
# do not write a file .dune.resume to the home directory CMAKE_FLAGS="\
RESUME_FILE=/dev/null -DCMAKE_CXX_FLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
"
CONFIGURE_FLAGS="\
CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
--enable-fieldvector-size-is-method \
--disable-documentation \
--disable-parallel \
--disable-mpiruntest"
# for CO2 and CO2ni tests # for CO2 and CO2ni tests
# --enable-experimental-grid-extensions \ # -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS=TRUE \
# --with-alugrid=PATH_TO_ALUGrid \ # need to be set in the configure flags
# need to be set in the configure flags # and the module dune-alugrid must be present
\ No newline at end of file
...@@ -25,14 +25,11 @@ GXX_OPTS=" \ ...@@ -25,14 +25,11 @@ GXX_OPTS=" \
RESUME_FILE=/dev/null RESUME_FILE=/dev/null
# configure flags # configure flags
CONFIGURE_FLAGS=" \ CMAKE_FLAGS=" \
CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \ -DCMAKE_CXX_FLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
--enable-fieldvector-size-is-method \ "
--disable-documentation \
--disable-parallel \
--disable-mpiruntest"
# for CO2 and CO2ni tests # for CO2 and CO2ni tests
# --enable-experimental-grid-extensions \ # -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS=TRUE \
# --with-alugrid=PATH_TO_ALUGrid \ # need to be set in the CMake flags
# need to be set in the configure flags # and the module dune-alugrid must be present
\ No newline at end of file
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