include/meltpooldg/core/exceptions.hpp Source File

Developer Documentation: include/meltpooldg/core/exceptions.hpp Source File
Developer Documentation
exceptions.hpp
Go to the documentation of this file.
1#pragma once
2#include <deal.II/base/exceptions.h>
3
4#include <string>
5
6#define AssertThrowZeroTimeIncrement(dt) AssertThrow(dt > 0, MeltPoolDG::ExcZeroTimeIncrement())
7
8namespace MeltPoolDG
9{
10 DeclException1(ExcBCAlreadyAssigned,
11 std::string,
12 << "You try to attach a " << arg1 << " boundary condition "
13 << "for a boundary_id for which a boundary condition is already "
14 << "specified. Check your input related to boundary conditions!");
15
16 DeclException2(ExcFieldNotAttached,
17 std::string,
18 std::string,
19 << "It seems that you have not called SimulationCaseBase::" << arg1
20 << "() for the operator \"" << arg2 << "\". You can do that, e.g., "
21 << "in your simulation by overriding SimulationCaseBase::set_field_conditions().");
22 DeclExceptionMsg(ExcZeroTimeIncrement,
23 "It seems that the time increment is zero. Make sure that "
24 "the time increment is larger than zero.");
25 DeclExceptionMsg(ExcNewtonDidNotConverge, "The Newton-Raphson solver did not converge.");
26 DeclExceptionMsg(ExcHeatTransferNoConvergence, "The heat transfer solver did not converge.");
27 DeclException2(ExcInvalidCSVInputColumns,
28 unsigned int,
29 unsigned int,
30 << "Expected " << arg1 << " columns in each line of the CSV file, but got " << arg2
31 << ". Please check your input file.");
33 ExcFailedToConvertStringToNumber,
34 std::string,
35 << "Failed to convert the string \"" << arg1
36 << "\" to a number. Please ensure that the string is a valid representation of a number and "
37 << "does not contain any extraneous characters.");
38} // namespace MeltPoolDG
Interface for a general preconditioner.
Definition boundary_condition_functions.hpp:17
DeclException1(ExcBCAlreadyAssigned, std::string,<< "You try to attach a "<< arg1<< " boundary condition "<< "for a boundary_id for which a boundary condition is already "<< "specified. Check your input related to boundary conditions!")
DeclExceptionMsg(ExcZeroTimeIncrement, "It seems that the time increment is zero. Make sure that " "the time increment is larger than zero.")
DeclException2(ExcFieldNotAttached, std::string, std::string,<< "It seems that you have not called SimulationCaseBase::"<< arg1<< "() for the operator \""<< arg2<< "\". You can do that, e.g., "<< "in your simulation by overriding SimulationCaseBase::set_field_conditions().")