]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't set ghost values in diagonal matrices. 12664/head
authorDavid Wells <drwells@email.unc.edu>
Thu, 19 May 2022 13:53:29 +0000 (09:53 -0400)
committerDavid Wells <drwells@email.unc.edu>
Thu, 19 May 2022 13:53:29 +0000 (09:53 -0400)
We never read them.

doc/news/changes/incompatibilities/20210817DavidWells [new file with mode: 0644]
include/deal.II/matrix_free/operators.h

diff --git a/doc/news/changes/incompatibilities/20210817DavidWells b/doc/news/changes/incompatibilities/20210817DavidWells
new file mode 100644 (file)
index 0000000..aae77d6
--- /dev/null
@@ -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)
index f0843f42a6603f553536787f617c2ef762db83ec..44f8bfaede591febefe5ccfb89126ba6407c9da6 100644 (file)
@@ -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
   }
 
 
@@ -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
   }
 
 

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.