deal.II version GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
exceptions.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2004 - 2022 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_lac_exceptions_h
14#define dealii_lac_exceptions_h
15
16#include <deal.II/base/config.h>
17
19
21
23{
33 "This function only works for quadratic objects!");
34
39
44
50 "This function requires that the current object have a "
51 "sparsity pattern attached to it, but no sparsity pattern "
52 "is available. This usually means that there is a missing "
53 "reinit() call which would have added the sparsity pattern.");
54
64 {
65 public:
66 ExcPETScError(const int error_code);
67
68 virtual void
69 print_info(std::ostream &out) const override;
70
71 const int error_code;
72 };
73
79 int,
80 << "An error with error number " << arg1
81 << " occurred while calling a Trilinos function");
82
84} // namespace LACExceptions
85
86
87using namespace LACExceptions;
88
89
91
92#endif
virtual void print_info(std::ostream &out) const override
Definition exceptions.cc:33
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
#define DeclException0(Exception0)
static ::ExceptionBase & ExcSingular()
static ::ExceptionBase & ExcNeedsSparsityPattern()
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcDifferentBlockIndices()
static ::ExceptionBase & ExcNotQuadratic()
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & ExcTrilinosError(int arg1)