From 6e99d9430afd616fa5b8c26a6ea1186a8032c578 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 29 Mar 2005 21:46:16 +0000 Subject: [PATCH] New testcase comparing symmetric tensors and asymmetric ones. git-svn-id: https://svn.dealii.org/trunk@10303 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/symmetric_tensor_06.cc | 87 +++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 tests/base/symmetric_tensor_06.cc diff --git a/tests/base/symmetric_tensor_06.cc b/tests/base/symmetric_tensor_06.cc new file mode 100644 index 0000000000..2426bc5415 --- /dev/null +++ b/tests/base/symmetric_tensor_06.cc @@ -0,0 +1,87 @@ +//---------------------------- symmetric_tensor_06.cc --------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2005 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_06.cc --------------------------- + +// make sure a tensor similar to the elasticity tensor for the +// isotropic case works as expected by comparing with a full tensor + +#include "../tests.h" +#include +#include +#include +#include +#include + + +template +void test () +{ + const double lambda = 5, + mu = 7; + SymmetricTensor<4,dim> ts; + Tensor<4,dim> ta; + for (unsigned int i=0; i as, bs; + Tensor<2,dim> aa, ba; + + for (unsigned int i=0; i (); + test<3> (); + + deallog << "OK" << std::endl; +} -- 2.39.5