From: Wolfgang Bangerth Date: Wed, 6 Apr 2005 18:15:10 +0000 (+0000) Subject: I managed to get the determinant wrong... X-Git-Tag: v8.0.0~14152 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d7a18264425cd0f10ed19648cacfc1b6a9681d4;p=dealii.git I managed to get the determinant wrong... git-svn-id: https://svn.dealii.org/trunk@10395 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/full_tensor_09.cc b/tests/base/full_tensor_09.cc new file mode 100644 index 0000000000..cc2bb20766 --- /dev/null +++ b/tests/base/full_tensor_09.cc @@ -0,0 +1,55 @@ +//---------------------------- full_tensor_09.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. +// +//---------------------------- full_tensor_09.cc --------------------------- + +// test the determinant code + +#include "../tests.h" +#include +#include +#include +#include + + +template +void test () +{ + Tensor<2,dim> t; + + // choose the same symmetric tensor + // as in symmetric_tensor_09 + for (unsigned int i=0; i (); + test<3> (); + + deallog << "OK" << std::endl; +} diff --git a/tests/base/symmetric_tensor_09.cc b/tests/base/symmetric_tensor_09.cc new file mode 100644 index 0000000000..bb362635c8 --- /dev/null +++ b/tests/base/symmetric_tensor_09.cc @@ -0,0 +1,52 @@ +//---------------------------- symmetric_tensor_09.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_09.cc --------------------------- + +// test the determinant code + +#include "../tests.h" +#include +#include +#include +#include + + +template +void test () +{ + SymmetricTensor<2,dim> t; + for (unsigned int i=0; i (); + test<3> (); + + deallog << "OK" << std::endl; +}