include/deal.II/lac/exceptions.h

00001 //---------------------------------------------------------------------------
00002 //    @f$Id: exceptions.h 25345 2012-03-31 08:37:04Z bangerth @f$
00003 //
00004 //    Copyright (C) 2004, 2005, 2006, 2012 by the deal.II authors
00005 //
00006 //    This file is subject to QPL and may not be  distributed
00007 //    without copyright and license information. Please refer
00008 //    to the file deal.II/doc/license.html for the  text  and
00009 //    further information on this license.
00010 //
00011 //---------------------------------------------------------------------------
00012 #ifndef __deal2__lac_exceptions_h
00013 #define __deal2__lac_exceptions_h
00014 
00015 #include <deal.II/base/exceptions.h>
00016 
00017 DEAL_II_NAMESPACE_OPEN
00018 
00019 namespace LACExceptions
00020 {
00025 
00030   DeclException0 (ExcNotQuadratic);
00031 
00036   DeclException0 (ExcSingular);
00037 
00042   DeclException0 (ExcDifferentBlockIndices);
00043 
00049   DeclException1 (ExcPETScError,
00050                   int,
00051                   << "An error with error number " << arg1
00052                   << " occured while calling a PETSc function");
00053 
00059   DeclException1 (ExcTrilinosError,
00060                   int,
00061                   << "An error with error number " << arg1
00062                   << " occured while calling a Trilinos function");
00063 
00065 }
00066 
00067 
00068 using namespace LACExceptions;
00069 
00070 
00071 DEAL_II_NAMESPACE_CLOSE
00072 
00073 #endif
00074 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Tue May 22 2012 12:06:02 by doxygen 1.7.3