From: Wolfgang Bangerth Date: Thu, 18 May 2023 05:51:55 +0000 (-0600) Subject: Initialize and check an assertion in the NOX solver. X-Git-Tag: v9.5.0-rc1~216^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=879ec23b2a765dbcedb6dc4f91a7c2ef13bb39d4;p=dealii.git Initialize and check an assertion in the NOX solver. --- diff --git a/include/deal.II/trilinos/nox.h b/include/deal.II/trilinos/nox.h index 3ca2cc2612..37c5ede1e6 100644 --- a/include/deal.II/trilinos/nox.h +++ b/include/deal.II/trilinos/nox.h @@ -164,6 +164,11 @@ namespace TrilinosWrappers const Teuchos::RCP ¶meters = Teuchos::rcp(new Teuchos::ParameterList)); + /** + * Destructor. + */ + ~NOXSolver(); + /** * Clear the internal state. */ diff --git a/include/deal.II/trilinos/nox.templates.h b/include/deal.II/trilinos/nox.templates.h index 57d8974504..e0a8b690fd 100644 --- a/include/deal.II/trilinos/nox.templates.h +++ b/include/deal.II/trilinos/nox.templates.h @@ -940,9 +940,17 @@ namespace TrilinosWrappers , n_jacobian_applications(0) , n_nonlinear_iterations(0) , n_last_linear_iterations(0) + , pending_exception(nullptr) {} + template + NOXSolver::~NOXSolver() + { + Assert(pending_exception == nullptr, ExcInternalError()); + } + + template void