Skip to content

Commit

Permalink
Merge pull request #12664 from drwells/unghost-matrix-diagonals
Browse files Browse the repository at this point in the history
Unghost matrix diagonals
  • Loading branch information
kronbichler committed May 19, 2022
2 parents 8e1d23a + 6652d67 commit 4d58051
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions doc/news/changes/incompatibilities/20210817DavidWells
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Changed: The DiagonalMatrix objects set up by MatrixFreeOperators::Base and
its inheriting classes no set ghost entries.
<br>
(David Wells, 2021/08/17)
6 changes: 2 additions & 4 deletions include/deal.II/matrix_free/operators.h
Original file line number Diff line number Diff line change
Expand Up @@ -1909,8 +1909,7 @@ namespace MatrixFreeOperators
1. / inverse_diagonal_vector.local_element(i);
}

inverse_diagonal_vector.update_ghost_values();
diagonal_vector.update_ghost_values();
// We never need ghost values so don't update them
}


Expand Down Expand Up @@ -2206,8 +2205,7 @@ namespace MatrixFreeOperators
else
inverse_diagonal_vector.local_element(i) = 1.;

inverse_diagonal_vector.update_ghost_values();
diagonal_vector.update_ghost_values();
// We never need ghost values so don't update them
}


Expand Down

0 comments on commit 4d58051

Please sign in to comment.