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=refs%2Fpull%2F12632%2Fhead;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; }