From: bangerth Date: Fri, 27 May 2011 22:07:07 +0000 (+0000) Subject: Fix the same kind of bug in SparsityPattern::exist that was previously fixed in Spars... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02a87ec312400b292baefc3eaeefe46a1a515d00;p=dealii-svn.git Fix the same kind of bug in SparsityPattern::exist that was previously fixed in SparseMatrix::el() and SparseMatrix::opeator(). git-svn-id: https://svn.dealii.org/trunk@23748 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/news/changes.h b/deal.II/doc/news/changes.h index 5921af27c5..25e57f3de3 100644 --- a/deal.II/doc/news/changes.h +++ b/deal.II/doc/news/changes.h @@ -156,9 +156,10 @@ didn't get column indices right. This is now fixed.
  • Fixed: The TrilinosWrappers::SparseMatrix::operator() and TrilinosWrappers::SparseMatrix::el() functions sometimes produced -wrong results for rectangular matrices. This is now fixed. +wrong results for rectangular matrices. The same is true for +TrilinosWrappers::SparsityPattern::exists(). This is now fixed.
    -(Habib Talavatifard, Wolfgang Bangerth 2011/05/09) +(Habib Talavatifard, Wolfgang Bangerth 2011/05/09, 2011/05/27)
  • Changed: DoFTools is now a namespace. It has long been a class that had only public, static member functions, making the end result semantically diff --git a/deal.II/source/lac/trilinos_sparsity_pattern.cc b/deal.II/source/lac/trilinos_sparsity_pattern.cc index b2571ae120..b61995d42b 100644 --- a/deal.II/source/lac/trilinos_sparsity_pattern.cc +++ b/deal.II/source/lac/trilinos_sparsity_pattern.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2008, 2009, 2010 by the deal.II authors +// Copyright (C) 2008, 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -417,7 +417,7 @@ namespace TrilinosWrappers { // Extract local indices in // the matrix. - int trilinos_i = graph->LRID(i), trilinos_j = graph->LRID(j); + int trilinos_i = graph->LRID(i), trilinos_j = graph->LCID(j); // If the data is not on the // present processor, we throw