From c6c2ac180a3c3748ecf6fe93589976d48812f404 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sat, 7 Aug 2021 20:47:42 +0200 Subject: [PATCH] Step-47: unify code --- examples/step-47/step-47.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/step-47/step-47.cc b/examples/step-47/step-47.cc index c63afdd9b0..85e7a53613 100644 --- a/examples/step-47/step-47.cc +++ b/examples/step-47/step-47.cc @@ -853,7 +853,10 @@ namespace Step47 error_per_cell[cell->active_cell_index()] = std::sqrt(local_error); } - const double error_norm = error_per_cell.l2_norm(); + const double error_norm = + VectorTools::compute_global_error(triangulation, + error_per_cell, + VectorTools::L2_norm); std::cout << " Error in the broken H2 seminorm: " << error_norm << std::endl; } -- 2.39.5