From: Wolfgang Bangerth Date: Thu, 29 Oct 2009 05:18:04 +0000 (+0000) Subject: Improve error message. X-Git-Tag: v8.0.0~6868 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3a6b5aca78687b619e63b9f14aea1bb30b8493a;p=dealii.git Improve error message. git-svn-id: https://svn.dealii.org/trunk@20006 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/petsc_parallel_vector.cc b/deal.II/lac/source/petsc_parallel_vector.cc index 7945fadb6a..31e951f63d 100644 --- a/deal.II/lac/source/petsc_parallel_vector.cc +++ b/deal.II/lac/source/petsc_parallel_vector.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2006, 2008 by the deal.II authors +// Copyright (C) 2004, 2006, 2008, 2009 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -165,7 +165,8 @@ namespace PETScWrappers &vector); AssertThrow (ierr == 0, ExcPETScError(ierr)); - Assert (size() == n, ExcInternalError()); + Assert (size() == n, + ExcDimensionMismatch (size(), n)); } }