Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
d57cd920
Commit
d57cd920
authored
Aug 28, 2019
by
Timo Koch
Committed by
Dennis Gläser
Sep 02, 2019
Browse files
[richards][test] Test with analytic Jacobian
parent
e25e3f54
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/porousmediumflow/richards/implicit/lens/CMakeLists.txt
View file @
d57cd920
...
...
@@ -2,10 +2,10 @@ add_input_file_links(FILES params.input)
# isothermal tests
add_executable
(
test_richards_lens_tpfa EXCLUDE_FROM_ALL main.cc
)
target_compile_definitions
(
test_richards_lens_tpfa PUBLIC TYPETAG=RichardsLensCC
)
target_compile_definitions
(
test_richards_lens_tpfa PUBLIC TYPETAG=RichardsLensCC
PUBLIC DIFFMETHOD=DiffMethod::numeric
)
add_executable
(
test_richards_lens_box EXCLUDE_FROM_ALL main.cc
)
target_compile_definitions
(
test_richards_lens_box PUBLIC TYPETAG=RichardsLensBox
)
target_compile_definitions
(
test_richards_lens_box PUBLIC TYPETAG=RichardsLensBox
PUBLIC DIFFMETHOD=DiffMethod::numeric
)
dune_add_test
(
TARGET test_richards_lens_box
LABELS porousmediumflow richards
...
...
@@ -15,6 +15,17 @@ dune_add_test(TARGET test_richards_lens_box
${
CMAKE_CURRENT_BINARY_DIR
}
/test_richards_lens_box-00007.vtu
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_richards_lens_box params.input -Problem.Name test_richards_lens_box"
)
dune_add_test
(
NAME test_richards_lens_box_analyticdiff
SOURCES main.cc
LABELS porousmediumflow richards
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
COMPILE_DEFINITIONS DIFFMETHOD=DiffMethod::analytic
COMPILE_DEFINITIONS TYPETAG=RichardsLensBox
CMD_ARGS --script fuzzy
--files
${
CMAKE_SOURCE_DIR
}
/test/references/test_richards_lens_box-reference.vtu
${
CMAKE_CURRENT_BINARY_DIR
}
/test_richards_lens_box_analyticdiff-00007.vtu
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_richards_lens_box_analyticdiff params.input -Problem.Name test_richards_lens_box_analyticdiff"
)
dune_add_test
(
TARGET test_richards_lens_tpfa
LABELS porousmediumflow richards
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
...
...
@@ -23,6 +34,17 @@ dune_add_test(TARGET test_richards_lens_tpfa
${
CMAKE_CURRENT_BINARY_DIR
}
/test_richards_lens_tpfa-00007.vtu
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_richards_lens_tpfa params.input -Problem.Name test_richards_lens_tpfa"
)
dune_add_test
(
NAME test_richards_lens_tpfa_analyticdiff
SOURCES main.cc
LABELS porousmediumflow richards
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
COMPILE_DEFINITIONS DIFFMETHOD=DiffMethod::analytic
COMPILE_DEFINITIONS TYPETAG=RichardsLensCC
CMD_ARGS --script fuzzy
--files
${
CMAKE_SOURCE_DIR
}
/test/references/test_richards_lens_tpfa-reference.vtu
${
CMAKE_CURRENT_BINARY_DIR
}
/test_richards_lens_tpfa_analyticdiff-00007.vtu
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_richards_lens_tpfa_analyticdiff params.input -Problem.Name test_richards_lens_tpfa_analyticdiff"
)
dune_add_test
(
NAME test_richards_lens_box_parallel_yasp
TARGET test_richards_lens_box
LABELS porousmediumflow richards parallel
...
...
test/porousmediumflow/richards/implicit/lens/main.cc
View file @
d57cd920
...
...
@@ -140,7 +140,7 @@ int main(int argc, char** argv) try
timeLoop
->
setMaxTimeStepSize
(
maxDt
);
// the assembler with time loop for instationary problem
using
Assembler
=
FVAssembler
<
TypeTag
,
D
iffMethod
::
numeric
>
;
using
Assembler
=
FVAssembler
<
TypeTag
,
D
IFFMETHOD
>
;
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
fvGridGeometry
,
gridVariables
,
timeLoop
);
// the linear solver
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment