From 987d12e3d1c888641b5cdb315ecb03397361166b Mon Sep 17 00:00:00 2001 From: Sebastian Proell Date: Sun, 14 May 2023 15:58:50 +0200 Subject: [PATCH] Fix step-77 with NOX: zero out residual --- tests/trilinos/step-77-with-nox.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/trilinos/step-77-with-nox.cc b/tests/trilinos/step-77-with-nox.cc index cfc82d5436..4035f74038 100644 --- a/tests/trilinos/step-77-with-nox.cc +++ b/tests/trilinos/step-77-with-nox.cc @@ -245,6 +245,8 @@ namespace Step77 const Vector &evaluation_point, Vector & residual) { + residual = 0; + const QGauss quadrature_formula(fe.degree + 1); FEValues fe_values(fe, quadrature_formula, -- 2.39.5