Skip to content

Commit

Permalink
Fix Tpetra vector compression state after add() into locally owned entry
Browse files Browse the repository at this point in the history
  • Loading branch information
QY-Shi committed Aug 28, 2024
1 parent 6357de6 commit 6f1b4d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/news/changes/minor/20240828Shi
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Fix: Add the missing `compressed = false` in TpetraWrappers::Vector::add()
function to ensure distributed Tpetra vector with writable nonlocal
entries will always be non-compressed after any entry addition.
<br>
(Qingyuan Shi, 2024/08/28)
1 change: 1 addition & 0 deletions include/deal.II/lac/trilinos_tpetra_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,7 @@ namespace LinearAlgebra
local_row != Teuchos::OrdinalTraits<int>::invalid())
{
vector_1d_local(local_row) += values[i];
compressed = false;
}
else
{
Expand Down

0 comments on commit 6f1b4d2

Please sign in to comment.