From: Wolfgang Bangerth Date: Tue, 9 May 2023 16:16:07 +0000 (-0600) Subject: Document what function we are setting up. X-Git-Tag: v9.5.0-rc1~227^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bfa41fd09f3608c1b43ddc64acc596559d226b5;p=dealii.git Document what function we are setting up. --- diff --git a/include/deal.II/trilinos/nox.templates.h b/include/deal.II/trilinos/nox.templates.h index 69d3bdbb4e..8df46cedae 100644 --- a/include/deal.II/trilinos/nox.templates.h +++ b/include/deal.II/trilinos/nox.templates.h @@ -967,7 +967,10 @@ namespace TrilinosWrappers // create group const auto group = Teuchos::rcp(new internal::NOXWrappers::Group< VectorType>( + /* Starting vector */ solution, + + /* Residual function */ [&](const VectorType &x, VectorType &f) -> int { Assert( residual, @@ -980,6 +983,8 @@ namespace TrilinosWrappers return internal::NOXWrappers::call_and_possibly_capture_exception( residual, pending_exception, x, f); }, + + /* setup_jacobian function */ [&](const VectorType &x) -> int { Assert( setup_jacobian, @@ -1015,6 +1020,8 @@ namespace TrilinosWrappers return flag; }, + + /* apply_jacobian function */ [&](const VectorType &x, VectorType &v) -> int { Assert( apply_jacobian, @@ -1027,6 +1034,8 @@ namespace TrilinosWrappers return internal::NOXWrappers::call_and_possibly_capture_exception( apply_jacobian, pending_exception, x, v); }, + + /* solve_with_jacobian function */ [&](const VectorType &f, VectorType &x, const double tolerance) -> int { n_nonlinear_iterations++;