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
701b38e9
Commit
701b38e9
authored
Aug 09, 2018
by
Timo Koch
Browse files
fiuxp staggered loadsolution
parent
08f33284
Changes
2
Hide whitespace changes
Inline
Side-by-side
dumux/io/loadsolution.hh
View file @
701b38e9
...
...
@@ -134,6 +134,15 @@ auto loadSolutionFromVtkFile(SolutionVector& sol,
sol
[
eIdx
][
pvIdx
]
=
vec
[
i
++
];
}
}
// for staggered face data (which is written out as VTK point data) we just read in the vector
else
if
(
dataType
==
VTKReader
::
DataType
::
pointData
&&
FVGridGeometry
::
discMethod
==
DiscretizationMethod
::
staggered
)
{
if
(
sol
.
size
()
!=
vec
.
size
())
DUNE_THROW
(
Dune
::
InvalidStateException
,
"Solution size ("
<<
sol
.
size
()
<<
") does not match input size ("
<<
vec
.
size
()
<<
")!"
);
for
(
std
::
size_t
i
=
0
;
i
<
sol
.
size
();
++
i
)
sol
[
i
][
pvIdx
]
=
vec
[
i
];
}
else
{
std
::
size_t
i
=
0
;
...
...
test/freeflow/navierstokes/CMakeLists.txt
View file @
701b38e9
...
...
@@ -73,8 +73,7 @@ dune_add_test(NAME test_channel_navierstokes
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_navierstokes -Vtk.WriteFaceData 1"
)
dune_add_test
(
NAME test_channel_navierstokes_restart
SOURCES test_channel.cc
COMPILE_DEFINITIONS ENABLE_NAVIERSTOKES=1
TARGET test_channel_navierstokes
CMAKE_GUARD HAVE_UMFPACK
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
CMD_ARGS --script fuzzy
...
...
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