]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust assert. 13026/head
authorMarc Fehling <mafehling.git@gmail.com>
Fri, 3 Dec 2021 00:43:09 +0000 (17:43 -0700)
committerMarc Fehling <mafehling.git@gmail.com>
Fri, 3 Dec 2021 00:43:09 +0000 (17:43 -0700)
include/deal.II/physics/vector_relations.h

index efc263447ca087d56dc2c2ff6323260cadaefc48..76c8e3a6a6da7de3e69c79a6b26b025230be4ddc 100644 (file)
@@ -121,8 +121,8 @@ Physics::VectorRelations::signed_angle(const Tensor<1, spacedim, Number> &a,
 
   Assert(std::abs(axis.norm() - 1.) < 1.e-12,
          ExcMessage("The axial vector is not a unit vector."));
-  Assert(std::abs(axis * a) < 1.e-12 * b.norm() &&
-           std::abs(axis * b) < 1.e-12 * a.norm(),
+  Assert(std::abs(axis * a) < 1.e-12 * a.norm() &&
+           std::abs(axis * b) < 1.e-12 * b.norm(),
          ExcMessage("The vectors are not perpendicular to the axial vector."));
 
   const Number dot = a * b;

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.