From: Guido Kanschat Date: Thu, 15 Feb 2001 13:45:59 +0000 (+0000) Subject: rectangle added X-Git-Tag: v8.0.0~19722 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44bff77933d7ab4e04cc8c35da716e5884e7f14a;p=dealii.git rectangle added git-svn-id: https://svn.dealii.org/trunk@3944 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/deal.II/second_derivatives.cc b/tests/deal.II/second_derivatives.cc index 1a8a3ee56a..175f0e77db 100644 --- a/tests/deal.II/second_derivatives.cc +++ b/tests/deal.II/second_derivatives.cc @@ -54,13 +54,23 @@ Vector val(4); // shape functions. first loop: // unit cell, second loop: // one vertex moved - for (unsigned int loop=0; loop<2; ++loop) + for (unsigned int loop=0; loop<=2; ++loop) { deallog << "Test loop: " << loop << endl; // move one vertex of the only cell if (loop==1) - tria.begin_active()->vertex(2)(0) = 2; + { + tria.begin_active()->vertex(1)(0) = 2; + tria.begin_active()->vertex(2)(0) = 2; + } + if (loop==2) + { + tria.begin_active()->vertex(2)(0) = 3; + tria.begin_active()->vertex(2)(1) = 3; + } + + fevalues.reinit (dof.begin_active()); for (unsigned int vertex=0; vertex<4; ++vertex) diff --git a/tests/deal.II/second_derivatives.checked b/tests/deal.II/second_derivatives.checked index 1fb4368c75..14d2076fd8 100644 --- a/tests/deal.II/second_derivatives.checked +++ b/tests/deal.II/second_derivatives.checked @@ -43,42 +43,83 @@ DEAL::-1.00 0.00 DEAL::Test loop: 1 DEAL::Vertex 0: -DEAL::0.00 2.00 -DEAL::2.00 0.00 DEAL::0.00 0.500 DEAL::0.500 0.00 -DEAL::0.00 2.00 -DEAL::2.00 -4.00 DEAL::0.00 0.500 -DEAL::0.500 -1.00 +DEAL::0.500 0.00 +DEAL::0.00 0.500 +DEAL::0.500 0.00 +DEAL::0.00 0.500 +DEAL::0.500 0.00 DEAL::Vertex 1: -DEAL::0.00 -2.00 -DEAL::-2.00 0.00 DEAL::0.00 -0.500 DEAL::-0.500 0.00 -DEAL::0.00 -2.00 -DEAL::-2.00 4.00 DEAL::0.00 -0.500 -DEAL::-0.500 1.00 +DEAL::-0.500 0.00 +DEAL::0.00 -0.500 +DEAL::-0.500 0.00 +DEAL::0.00 -0.500 +DEAL::-0.500 0.00 DEAL::Vertex 2: -DEAL::0.00 1.00 -DEAL::1.00 0.00 -DEAL::0.00 0.250 -DEAL::0.250 0.00 -DEAL::0.00 1.00 -DEAL::1.00 -2.00 -DEAL::0.00 0.250 -DEAL::0.250 -0.500 +DEAL::0.00 0.500 +DEAL::0.500 0.00 +DEAL::0.00 0.500 +DEAL::0.500 0.00 +DEAL::0.00 0.500 +DEAL::0.500 0.00 +DEAL::0.00 0.500 +DEAL::0.500 0.00 DEAL::Vertex 3: -DEAL::0.00 -1.00 -DEAL::-1.00 0.00 -DEAL::0.00 -0.250 -DEAL::-0.250 0.00 -DEAL::0.00 -1.00 -DEAL::-1.00 2.00 -DEAL::0.00 -0.250 -DEAL::-0.250 0.500 +DEAL::0.00 -0.500 +DEAL::-0.500 0.00 +DEAL::0.00 -0.500 +DEAL::-0.500 0.00 +DEAL::0.00 -0.500 +DEAL::-0.500 0.00 +DEAL::0.00 -0.500 +DEAL::-0.500 0.00 + +DEAL::Test loop: 2 +DEAL::Vertex 0: +DEAL::0.00 1.75 +DEAL::1.75 0.00 +DEAL::-1.04 0.778 +DEAL::0.778 0.00 +DEAL::0.00 0.194 +DEAL::0.194 -0.130 +DEAL::-0.245 0.224 +DEAL::0.224 -0.122 + +DEAL::Vertex 1: +DEAL::0.00 -0.750 +DEAL::-0.750 0.00 +DEAL::0.444 -0.333 +DEAL::-0.333 0.00 +DEAL::0.00 -0.0833 +DEAL::-0.0833 0.0556 +DEAL::0.105 -0.0962 +DEAL::-0.0962 0.0525 + +DEAL::Vertex 2: +DEAL::0.00 0.500 +DEAL::0.500 0.00 +DEAL::-0.296 0.222 +DEAL::0.222 0.00 +DEAL::0.00 0.0556 +DEAL::0.0556 -0.0370 +DEAL::-0.0700 0.0641 +DEAL::0.0641 -0.0350 + +DEAL::Vertex 3: +DEAL::0.00 -1.50 +DEAL::-1.50 0.00 +DEAL::0.889 -0.667 +DEAL::-0.667 0.00 +DEAL::0.00 -0.167 +DEAL::-0.167 0.111 +DEAL::0.210 -0.192 +DEAL::-0.192 0.105