]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use AssertDimension macro
authorFabian Castelli <fabian.castelli@kit.edu>
Sun, 8 Aug 2021 07:31:37 +0000 (09:31 +0200)
committerFabian Castelli <fabian.castelli@kit.edu>
Tue, 10 Aug 2021 12:24:59 +0000 (14:24 +0200)
include/deal.II/numerics/vector_tools_integrate_difference.templates.h

index 55dc0dfb0c970e98a30e5a845630cb51b03871da..a10aba6eeb41ece9561d5e282eff56567ba1d871 100644 (file)
@@ -451,8 +451,7 @@ namespace VectorTools
 
       const unsigned int n_components = dof.get_fe(0).n_components();
 
-      Assert(exact_solution.n_components == n_components,
-             ExcDimensionMismatch(exact_solution.n_components, n_components));
+      AssertDimension(exact_solution.n_components, n_components);
 
       if (weight != nullptr)
         {

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.