From 887775fba4e12e8f1c707d2a527ad5875dbb5aa5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 4 May 2023 12:44:48 -0600 Subject: [PATCH] Update documentation in a test. --- tests/trilinos/nox_solver_01.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/trilinos/nox_solver_01.cc b/tests/trilinos/nox_solver_01.cc index df022c6c29..ba1ff2acb1 100644 --- a/tests/trilinos/nox_solver_01.cc +++ b/tests/trilinos/nox_solver_01.cc @@ -15,8 +15,12 @@ -// Check TrilinosWrappers::NOXSolver by solving f(x) = x^2 with initial +// Check TrilinosWrappers::NOXSolver by solving f(x) = x^2 = 0 with initial // condition x=2. +// +// This test runs the same solver twice: Once via the deal.II interface to NOX +// in the TrilinosWrappers::NOXSolver class and once using the native, +// Epetra-based interface to NOX. The output should of course be the same. #include @@ -107,6 +111,9 @@ main(int argc, char **argv) .set("Tolerance", lin_rel_tolerance); non_linear_parameters->sublist("Line Search").set("Method", "Polynomial"); + /* + * First check: Use the deal.II-based wrappers for the test. + */ if (true) { // set up solver @@ -150,6 +157,9 @@ main(int argc, char **argv) deallog << "The solution is: " << solution[0] << std::endl; } + /* + * Second check: Run the same test through the native NOX interfaces. + */ if (true) { // convert data structures to Epetra structures -- 2.39.5