From: Peter Munch Date: Sat, 7 Aug 2021 18:47:42 +0000 (+0200) Subject: Step-47: unify code X-Git-Tag: v9.4.0-rc1~1096^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6c2ac180a3c3748ecf6fe93589976d48812f404;p=dealii.git Step-47: unify code --- 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; }