From: Wolfgang Bangerth Date: Thu, 2 Jun 2005 15:26:07 +0000 (+0000) Subject: New test. X-Git-Tag: v8.0.0~13738 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=191d9059956afd8de319653ab18fa2d974c3eb72;p=dealii.git New test. git-svn-id: https://svn.dealii.org/trunk@10818 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/symmetric_tensor_18.cc b/tests/base/symmetric_tensor_18.cc new file mode 100644 index 0000000000..6f405e5cb8 --- /dev/null +++ b/tests/base/symmetric_tensor_18.cc @@ -0,0 +1,80 @@ +//---------------------------- symmetric_tensor_18.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_18.cc --------------------------- + +// compute double contraction between two rank-4 tensors + +#include "../tests.h" +#include +#include +#include +#include + + +template +void test () +{ + deallog << "dim=" << dim << std::endl; + + SymmetricTensor<4,dim> T, A, B; + for (unsigned int i=0; i (); + test<2> (); + test<3> (); + + deallog << "OK" << std::endl; +}