From f54f95a992434643fbffc1c57373d07984bfd01a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 25 Mar 2016 15:28:54 -0500 Subject: [PATCH] Add test. --- tests/base/symmetric_tensor_29.cc | 60 +++++++++++++++++++++++++++ tests/base/symmetric_tensor_29.output | 8 ++++ 2 files changed, 68 insertions(+) create mode 100644 tests/base/symmetric_tensor_29.cc create mode 100644 tests/base/symmetric_tensor_29.output diff --git a/tests/base/symmetric_tensor_29.cc b/tests/base/symmetric_tensor_29.cc new file mode 100644 index 0000000000..0367a064e2 --- /dev/null +++ b/tests/base/symmetric_tensor_29.cc @@ -0,0 +1,60 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2016 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE at +// the top level of the deal.II distribution. +// +// --------------------------------------------------------------------- + + +// test Tensor<1,dim> * SymmetricTensor<2,dim> + +#include "../tests.h" +#include +#include +#include +#include + + +template +void test () +{ + deallog << "dim=" << dim << std::endl; + + SymmetricTensor<2,dim> s; + for (unsigned int i=0; i t; + for (unsigned int i=0; i (); + test<5> (); + + deallog << "OK" << std::endl; +} diff --git a/tests/base/symmetric_tensor_29.output b/tests/base/symmetric_tensor_29.output new file mode 100644 index 0000000000..662f34ae98 --- /dev/null +++ b/tests/base/symmetric_tensor_29.output @@ -0,0 +1,8 @@ + +DEAL::dim=3 +DEAL::11.0 22.0 33.0 +DEAL::11.0 22.0 33.0 +DEAL::dim=5 +DEAL::29.0 58.0 87.0 116. 145. +DEAL::29.0 58.0 87.0 116. 145. +DEAL::OK -- 2.39.5