]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix step-77 with NOX: zero out residual
authorSebastian Proell <sebastian.proell@tum.de>
Sun, 14 May 2023 13:58:50 +0000 (15:58 +0200)
committerSebastian Proell <sebastian.proell@tum.de>
Sun, 14 May 2023 13:58:50 +0000 (15:58 +0200)
tests/trilinos/step-77-with-nox.cc

index cfc82d543667224e037e5e429adbb508b4056832..4035f74038ea24e7da2bd0f72e3b38009cf99576 100644 (file)
@@ -245,6 +245,8 @@ namespace Step77
     const Vector<double> &evaluation_point,
     Vector<double> &      residual)
   {
+    residual = 0;
+
     const QGauss<dim> quadrature_formula(fe.degree + 1);
     FEValues<dim>     fe_values(fe,
                             quadrature_formula,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.