From: Wolfgang Bangerth Date: Thu, 4 May 2023 18:44:48 +0000 (-0600) Subject: Update documentation in a test. X-Git-Tag: v9.5.0-rc1~262^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=887775fba4e12e8f1c707d2a527ad5875dbb5aa5;p=dealii.git Update documentation in a test. --- 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