]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a test for distributivity of multiplication.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 29 Mar 2005 23:45:53 +0000 (23:45 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 29 Mar 2005 23:45:53 +0000 (23:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@10315 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/symmetric_tensor_07.cc

index 3049ebfeb92dfa5706c379e7dab51f3ba9fddee1..5e0bf580605548039fde8bfc6e306b3c2adce0be 100644 (file)
@@ -59,6 +59,11 @@ void test ()
        deallog << as[i][j] << ' ' << bs[i][i] << std::endl;
       }
 
+                                  // test distributivity of
+                                  // multiplication
+  Assert ((as*ts)*as == as*(ts*as), ExcInternalError());
+  
+  
                                   // also test that the elasticity
                                   // tensor is positive definite
   deallog << as * ts * as << 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.