]> https://gitweb.dealii.org/ - dealii.git/commit
Fix a bug in make_sparsity_pattern(dh, dh, sp). 7763/head
authorDavid Wells <drwells@email.unc.edu>
Wed, 27 Feb 2019 22:13:25 +0000 (17:13 -0500)
committerDavid Wells <drwells@email.unc.edu>
Mon, 18 Mar 2019 14:09:08 +0000 (10:09 -0400)
commit1ee851f4cbec17bb980c845ca415721d8598ec04
tree109fa9e7e79e486083ed9df969e29e940550310b
parent3dd93e4ca588c1876b3eb09e43b87eb3487702ab
Fix a bug in make_sparsity_pattern(dh, dh, sp).

This function relied GridTools::get_finest_common_cells which was
written before any of the parallel triangulations were implemented and
thus assumed that all cells without children were active. This commit
modifies that function to only return active cells that are also locally
owned, which fixes the sparsity pattern function.
13 files changed:
doc/news/changes/minor/20190304DavidWells [new file with mode: 0644]
include/deal.II/grid/grid_tools.h
source/dofs/dof_tools_sparsity.cc
source/grid/grid_tools_dof_handlers.cc
tests/dofs/sparsity_pattern_06.cc [new file with mode: 0644]
tests/dofs/sparsity_pattern_06.with_p4est=on.mpirun=1.output [new file with mode: 0644]
tests/dofs/sparsity_pattern_06.with_p4est=on.mpirun=2.output [new file with mode: 0644]
tests/dofs/sparsity_pattern_07.cc [new file with mode: 0644]
tests/dofs/sparsity_pattern_07.mpirun=1.output [new file with mode: 0644]
tests/dofs/sparsity_pattern_07.mpirun=2.output [new file with mode: 0644]
tests/grid/get_finest_common_cells_04.cc [new file with mode: 0644]
tests/grid/get_finest_common_cells_04.with_p4est=true.mpirun=1.output [new file with mode: 0644]
tests/grid/get_finest_common_cells_04.with_p4est=true.mpirun=2.output [new file with mode: 0644]

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.