From: Guido Kanschat Date: Wed, 18 Jan 2006 09:36:13 +0000 (+0000) Subject: remove gradients since the test was obscure and the features are tested in the fe... X-Git-Tag: v8.0.0~12594 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d46c02be48536c34a0fe521da7e870b67aa535f;p=dealii.git remove gradients since the test was obscure and the features are tested in the fe directory git-svn-id: https://svn.dealii.org/trunk@12078 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/deal.II/Makefile b/tests/deal.II/Makefile index c2827b971d..78e52acfa1 100644 --- a/tests/deal.II/Makefile +++ b/tests/deal.II/Makefile @@ -1,7 +1,7 @@ # Generated automatically from Makefile.in by configure. ############################################################ # $Id$ -# Copyright (C) 2000, 2001, 2002, 2003, 2005 by the deal.II authors +# Copyright (C) 2000, 2001, 2002, 2003, 2005, 2006 by the deal.II authors ############################################################ ############################################################ @@ -30,7 +30,6 @@ tests_x = block_matrices \ dof_test \ dof_renumbering \ error_estimator \ - gradients \ grid_out \ grid_test \ grid_transform \ diff --git a/tests/deal.II/gradients.cc b/tests/deal.II/gradients.cc deleted file mode 100644 index ef633e70ad..0000000000 --- a/tests/deal.II/gradients.cc +++ /dev/null @@ -1,113 +0,0 @@ -//---------------------------- gradients.cc --------------------------- -// $Id$ -// Version: $Name$ -// -// Copyright (C) 1998, 1999, 2000, 2003, 2004, 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. -// -//---------------------------- gradients.cc --------------------------- - - -#include "../tests.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - - -int main () -{ - std::ofstream logfile("gradients/output"); - // limit output a bit - logfile.precision (3); - deallog.attach(logfile); - deallog.depth_console(0); - deallog.threshold_double(1.e-10); - - Triangulation<2> tria; - GridGenerator::hyper_cube (tria,0,1); - tria.begin_active()->vertex(3)(0) = 2; - - FE_Q<2> fe(1); - DoFHandler<2> dof(tria); - dof.distribute_dofs(fe); - - QTrapez<2> q; - MappingQ1<2> mapping; - FEValues<2> fevalues(mapping,fe,q,update_gradients); - fevalues.reinit (dof.begin_active()); - - - Vector val(4); - - deallog << "Testing transformation of gradients of shape function:" << std::endl; - - // test for each of the four - // shape functions - bool testcase_succeeded = true; - for (unsigned int vertex=0; vertex<4; ++vertex) - { - val = 0; - val(vertex) = 1; - - std::vector > grads(4); - fevalues.get_function_grads (val, grads); - - - bool ok; - switch (vertex) - { - case 0: - ok = ((grads[0] == Point<2>(-1,-1)) && - (grads[1] == Point<2>(0,-1)) && - (grads[2] == Point<2>(-1,1)) && - (grads[3] == Point<2>(0,0))); - break; - case 1: - ok = ((grads[0] == Point<2>(1,0)) && - (grads[1] == Point<2>(0,0)) && - (grads[2] == Point<2>(1,-2)) && - (grads[3] == Point<2>(0,-1))); - break; - case 2: - ok = ((grads[0] == Point<2>(0,1)) && - (grads[1] == Point<2>(-0.5,1)) && - (grads[2] == Point<2>(0,0)) && - (grads[3] == Point<2>(-0.5,0.5))); - break; - case 3: - ok = ((grads[0] == Point<2>(0,0)) && - (grads[1] == Point<2>(0.5,0)) && - (grads[2] == Point<2>(0,1)) && - (grads[3] == Point<2>(0.5,0.5))); - break; - }; - - deallog << " Shape function " << vertex - << ": " - << (ok ? "OK" : "WRONG!") - << std::endl; - - if (!ok) - testcase_succeeded = false; - }; - - if (testcase_succeeded) - return 0; - else - return 1; -} diff --git a/tests/deal.II/gradients/cmp/generic b/tests/deal.II/gradients/cmp/generic deleted file mode 100644 index c932afd70a..0000000000 --- a/tests/deal.II/gradients/cmp/generic +++ /dev/null @@ -1,6 +0,0 @@ - -DEAL::Testing transformation of gradients of shape function: -DEAL:: Shape function 0: OK -DEAL:: Shape function 1: OK -DEAL:: Shape function 2: OK -DEAL:: Shape function 3: OK