]> https://gitweb.dealii.org/ - dealii.git/commit
Fix 1D bug in one version of make_flux_sparsity_pattern. 9398/head
authorSimon Sticko <simon@sticko.se>
Fri, 17 Jan 2020 16:59:07 +0000 (17:59 +0100)
committerSimon Sticko <simon@sticko.se>
Mon, 20 Jan 2020 09:31:03 +0000 (10:31 +0100)
commit29c5030bfa875412c8be0297587a665b9e8a09a7
tree563acf8081f5d3ebde14e17889e9bd147fb4e0a8
parente97d1d314a8e95f1885f4f7b359231dad35d2f8c
Fix 1D bug in one version of make_flux_sparsity_pattern.

When a neighbor has children, the function loops over each face and the
children of each face_iterator. But in 1D the number of children of a
face is always zero. The result is that flux-couplings are missed in
the 1D case when not all cells are on the same level.

Fix this by avoiding to iterate over the children of the face in 1D.
This is the same solutions that is already used in line 597 of
source/dofs/dof_tools_sparsity.cc.
source/dofs/dof_tools_sparsity.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.