slice_vector \
table \
tensor \
+ tensor_* \
symmetric_tensor_* \
full_tensor_* \
timer \
--- /dev/null
+//---------------------------- symmetric_tensor_20.cc ---------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 2006 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//---------------------------- symmetric_tensor_20.cc ---------------------------
+
+// check SymmetricTensor<2,dim>::operator= (double)
+
+#include <base/symmetric_tensor.h>
+#include <base/logstream.h>
+#include <lac/vector.h>
+#include <fstream>
+#include <iostream>
+
+int main ()
+{
+ std::ofstream logfile("symmetric_tensor_20/output");
+ logfile.precision(3);
+ deallog.attach(logfile);
+ deallog.depth_console(0);
+ deallog.threshold_double(1.e-10);
+
+ const unsigned int dim=3;
+ SymmetricTensor<2,dim> t;
+ t[0][0] = t[1][0] = t[1][1] = t[2][2] = 3;
+
+ deallog << t.norm() << std::endl;
+ t = 0;
+ deallog << t.norm() << std::endl;
+
+ Assert (t.norm() == 0, ExcInternalError());
+
+ deallog << "OK" << std::endl;
+}
--- /dev/null
+
+DEAL::6.71
+DEAL::0
+DEAL::OK
--- /dev/null
+//---------------------------- symmetric_tensor_21.cc ---------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 2006 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//---------------------------- symmetric_tensor_21.cc ---------------------------
+
+// check SymmetricTensor<2,dim>::operator= (double)
+
+#include <base/symmetric_tensor.h>
+#include <base/logstream.h>
+#include <lac/vector.h>
+#include <fstream>
+#include <iostream>
+
+int main ()
+{
+ std::ofstream logfile("symmetric_tensor_21/output");
+ logfile.precision(3);
+ deallog.attach(logfile);
+ deallog.depth_console(0);
+ deallog.threshold_double(1.e-10);
+
+ const unsigned int dim=3;
+ SymmetricTensor<4,dim> t;
+ t[0][0][0][0] = t[1][0][1][0] = t[1][1][1][1]
+ = t[2][2][2][2] = t[2][0][2][0] = 3;
+
+ deallog << t.norm() << std::endl;
+ t = 0;
+ deallog << t.norm() << std::endl;
+
+ Assert (t.norm() == 0, ExcInternalError());
+
+ deallog << "OK" << std::endl;
+}
--- /dev/null
+
+DEAL::9.95
+DEAL::0
+DEAL::OK
--- /dev/null
+//---------------------------- tensor_02.cc ---------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 2006 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//---------------------------- tensor_02.cc ---------------------------
+
+// check Tensor::operator= (double)
+
+#include <base/tensor.h>
+#include <base/logstream.h>
+#include <lac/vector.h>
+#include <fstream>
+#include <iostream>
+
+int main ()
+{
+ std::ofstream logfile("tensor_02/output");
+ logfile.precision(3);
+ deallog.attach(logfile);
+ deallog.depth_console(0);
+ deallog.threshold_double(1.e-10);
+
+ double a[3][3] = {{1, 2, 3}, {3, 4, 5}, {6, 7, 8}};
+
+ const unsigned int dim=3;
+ Tensor<2,dim> t(a);
+
+ deallog << t.norm() << std::endl;
+ t = 0;
+ deallog << t.norm() << std::endl;
+
+ Assert (t.norm() == 0, ExcInternalError());
+
+ deallog << "OK" << std::endl;
+}
--- /dev/null
+
+DEAL::14.6
+DEAL::0
+DEAL::OK
--- /dev/null
+//---------------------------- tensor_03.cc ---------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 2006 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//---------------------------- tensor_03.cc ---------------------------
+
+// check Tensor<1,dim>::operator= (double)
+
+#include <base/tensor.h>
+#include <base/logstream.h>
+#include <lac/vector.h>
+#include <fstream>
+#include <iostream>
+
+int main ()
+{
+ std::ofstream logfile("tensor_03/output");
+ logfile.precision(3);
+ deallog.attach(logfile);
+ deallog.depth_console(0);
+ deallog.threshold_double(1.e-10);
+
+ double a[3] = {1, 2, 3};
+
+ const unsigned int dim=3;
+ Tensor<1,dim> t(a);
+
+ deallog << t.norm() << std::endl;
+ t = 0;
+ deallog << t.norm() << std::endl;
+
+ Assert (t.norm() == 0, ExcInternalError());
+
+ deallog << "OK" << std::endl;
+}
--- /dev/null
+
+DEAL::3.74
+DEAL::0
+DEAL::OK