]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Step-47: unify code 12632/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 7 Aug 2021 18:47:42 +0000 (20:47 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 10 Aug 2021 05:34:28 +0000 (07:34 +0200)
examples/step-47/step-47.cc

index c63afdd9b0a5a149bf4696799a160010c04fc50d..85e7a536131a9a1d8457b9fbdfc19a7d7f7248f7 100644 (file)
@@ -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;
     }

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.