From: Peter Munch Date: Sat, 6 Jan 2024 21:25:53 +0000 (+0100) Subject: Fix TrilinosWrappers::SparsityPattern::Accessor::visit_present_row() X-Git-Tag: relicensing~196^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec1a3e3ac5900bab755fb24a475dbb75787e33a3;p=dealii.git Fix TrilinosWrappers::SparsityPattern::Accessor::visit_present_row() --- diff --git a/source/lac/trilinos_sparsity_pattern.cc b/source/lac/trilinos_sparsity_pattern.cc index dbbdce76b7..89aea89693 100644 --- a/source/lac/trilinos_sparsity_pattern.cc +++ b/source/lac/trilinos_sparsity_pattern.cc @@ -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;