From f4dc2c198f4bf2a9e6879d96b20221f7c5d10e9d Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 29 Oct 2009 05:18:04 +0000 Subject: [PATCH] Improve error message. git-svn-id: https://svn.dealii.org/trunk@20006 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/petsc_parallel_vector.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)); } } -- 2.39.5