]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix TrilinosWrappers::SparsityPattern::Accessor::visit_present_row() 16420/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 6 Jan 2024 21:25:53 +0000 (22:25 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Sat, 6 Jan 2024 21:26:41 +0000 (22:26 +0100)
source/lac/trilinos_sparsity_pattern.cc

index dbbdce76b756ae1027d31abf10f7acd2fde1e549..89aea89693bf8fcf486b3b8265734d2abd41732f 100644 (file)
@@ -39,7 +39,8 @@ namespace TrilinosWrappers
     {
       // if we are asked to visit the past-the-end line, then simply
       // release all our caches and go on with life
-      if (this->a_row == sparsity_pattern->n_rows())
+      if (this->a_row == sparsity_pattern->n_rows() ||
+          (sparsity_pattern->in_local_range(this->a_row) == false))
         {
           colnum_cache.reset();
           return;

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.