]> https://gitweb.dealii.org/ - dealii.git/commitdiff
update tests
authorMatthias Maier <tamiko@43-1.org>
Thu, 17 Sep 2015 18:05:12 +0000 (13:05 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 21 Sep 2015 00:59:11 +0000 (19:59 -0500)
tests/base/symmetric_tensor_06.cc
tests/base/symmetric_tensor_07.cc
tests/base/tensor_09.cc

index 2401e8c352cb59638959eb7e912d614fdbcaa460..bd385967d6b03d7f03c02c7d6c7801e0d564e3ef 100644 (file)
@@ -67,7 +67,7 @@ void test ()
             }
         bs[i][j] = tmp_ij;
       }
-  ba = contract<2,0,3,1>(ta, aa);
+  ba = double_contract<2,0,3,1>(ta, aa);
 
   for (unsigned int i=0; i<dim; ++i)
     for (unsigned int j=0; j<dim; ++j)
index 83c31a9612998c52eaee57ce5da4d930e9af07f5..c8c7909f352370970f377d975b8d597e530e7446 100644 (file)
@@ -57,7 +57,7 @@ void test ()
 
   bs = ts * as;
   // contract indices 2 <-> 0, 3 <-> 1
-  ba = contract<2, 0, 3, 1>(ta, aa);
+  ba = double_contract<2, 0, 3, 1>(ta, aa);
 
   for (unsigned int i=0; i<dim; ++i)
     for (unsigned int j=0; j<dim; ++j)
index 50cdacda34bc4eafbc5726c87f36fb9a331ec2ee..dda831cbc9b02d077a31a2ed49c1c99a264ec2ff 100644 (file)
@@ -119,10 +119,10 @@ int main ()
   {
     Tensor<2, 3, int> result;
 
-    deallog << contract<2, 0, 3, 1>(rank4, rank2) << std::endl;
-    deallog << contract<3, 1, 2, 0>(rank4, rank2) << std::endl;
-    deallog << contract<0, 2, 1, 3>(rank2, rank4) << std::endl;
-    deallog << contract<1, 3, 0, 2>(rank2, rank4) << std::endl;
+    deallog << double_contract<2, 0, 3, 1>(rank4, rank2) << std::endl;
+    deallog << double_contract<3, 1, 2, 0>(rank4, rank2) << std::endl;
+    deallog << double_contract<0, 2, 1, 3>(rank2, rank4) << std::endl;
+    deallog << double_contract<1, 3, 0, 2>(rank2, rank4) << std::endl;
 
     double_contract(result, rank4, rank2);
     deallog << result << std::endl << 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.