AssertThrow(snes == static_cast<SNES>(mysolver), ExcInternalError());
mysolver.solve(v, A);
}
+ catch (StandardExceptions::ExcFunctionNotProvided)
+ {
+ deallog << "catching expected exception" << std::endl;
+ }
catch (std::exception &exc)
{
deallog << exc.what() << std::endl;
-DEAL::
---------------------------------------------------------
-An error occurred in file <petsc_snes.templates.h> in function
- unsigned int dealii::PETScWrappers::NonlinearSolver<VectorType, PMatrixType, AMatrixType>::solve(VectorType&) [with VectorType = VectorType; PMatrixType = MatrixType; AMatrixType = MatrixType]
-The violated condition was:
- residual
-Additional information:
- Please provide an implementation for the function "residual"
---------------------------------------------------------
-
+DEAL::catching expected exception
+++ /dev/null
-
-DEAL::
---------------------------------------------------------
-An error occurred in file <petsc_snes.templates.h> in function
- unsigned int dealii::PETScWrappers::NonlinearSolver<VectorType, MatrixType>::solve(VectorType &) [VectorType = VectorType, PMatrixType = MatrixType, AMatrixType = MatrixType]
-The violated condition was:
- residual
-Additional information:
- Please provide an implementation for the function "residual"
---------------------------------------------------------
-
AssertThrow(ts == static_cast<TS>(myode), ExcInternalError());
myode.solve(v, A);
}
+ catch (StandardExceptions::ExcFunctionNotProvided)
+ {
+ deallog << "catching expected exception" << std::endl;
+ }
catch (std::exception &exc)
{
deallog << exc.what() << std::endl;
-DEAL::
---------------------------------------------------------
-An error occurred in file <petsc_ts.templates.h> in function
- unsigned int dealii::PETScWrappers::TimeStepper<VectorType, PMatrixType, AMatrixType>::solve(VectorType&) [with VectorType = VectorType; PMatrixType = MatrixType; AMatrixType = MatrixType]
-The violated condition was:
- explicit_function || implicit_function
-Additional information:
- Please provide an implementation for the function "explicit_function
- || implicit_function"
---------------------------------------------------------
-
+DEAL::catching expected exception
+++ /dev/null
-
-DEAL::
---------------------------------------------------------
-An error occurred in file <petsc_ts.templates.h> in function
- unsigned int dealii::PETScWrappers::TimeStepper<VectorType, MatrixType>::solve(VectorType &) [VectorType = VectorType, PMatrixType = MatrixType, AMatrixType = MatrixType]
-The violated condition was:
- explicit_function || implicit_function
-Additional information:
- Please provide an implementation for the function "explicit_function
- || implicit_function"
---------------------------------------------------------
-