]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Change the tests to what they are supposed to test. rt_14 presently produces the...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 31 Jul 2006 20:35:16 +0000 (20:35 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 31 Jul 2006 20:35:16 +0000 (20:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@13550 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/rt_14.cc
tests/fe/rt_15.cc

index be946f79fb15583fc92d4b3be5fff81451da3b6c..435aedeeb6396341710a369c83bee7263f854ed9 100644 (file)
@@ -1,5 +1,5 @@
-//----------------------------  rt_12.cc  ---------------------------
-//    rt_12.cc,v 1.3 2003/06/09 16:00:38 wolf Exp
+//----------------------------  rt_14.cc  ---------------------------
+//    rt_14.cc,v 1.3 2003/06/09 16:00:38 wolf Exp
 //    Version: 
 //
 //    Copyright (C) 2003, 2005, 2006 by the deal.II authors
@@ -9,9 +9,9 @@
 //    to the file deal.II/doc/license.html for the  text  and
 //    further information on this license.
 //
-//----------------------------  rt_12.cc  ---------------------------
+//----------------------------  rt_14.cc  ---------------------------
 
-// Like rt_10, but check gradients instead of values
+// like rt_11, but use FESubfaceValues
 
 #include "../tests.h"
 #include <base/quadrature_lib.h>
@@ -37,7 +37,7 @@
 #define PRECISION 2
 
 
-std::ofstream logfile ("rt_12/output");
+std::ofstream logfile ("rt_14/output");
 
 template<int dim>
 void
@@ -59,10 +59,10 @@ test (const unsigned int degree)
       DoFHandler<dim> dof(tr);
       dof.distribute_dofs(fe_rt);
 
-      QTrapez<dim> quadrature;
+      QTrapez<dim-1> quadrature;
 
-      FEValues<dim> fe_values (fe_rt, quadrature, update_gradients);
-      fe_values.reinit (dof.begin_active());
+      FESubfaceValues<dim> fe_values (fe_rt, quadrature, update_values);
+      fe_values.reinit (dof.begin_active(), 0, 0);
       for (unsigned int q=0; q<quadrature.n_quadrature_points; ++q)
        {
          deallog << "    Quadrature point " << q << ": ";
@@ -70,7 +70,7 @@ test (const unsigned int degree)
            {
              deallog << '[';
              for (unsigned int c=0; c<fe_rt.n_components(); ++c)
-               deallog << fe_values.shape_grad_component(i,q,c) << ' ';
+               deallog << fe_values.shape_value_component(i,q,c) << ' ';
              deallog << ']';
            }
          deallog << std::endl;
index 58d43c8ce578689ffaad8c519f374054193c1dc8..4e10eed6c6c3df3bb04eb6ea51ab7b3624a93aea 100644 (file)
@@ -1,5 +1,5 @@
-//----------------------------  rt_13.cc  ---------------------------
-//    rt_13.cc,v 1.3 2003/06/09 16:00:38 wolf Exp
+//----------------------------  rt_15.cc  ---------------------------
+//    rt_15.cc,v 1.3 2003/06/09 16:00:38 wolf Exp
 //    Version: 
 //
 //    Copyright (C) 2003, 2005, 2006 by the deal.II authors
@@ -9,9 +9,9 @@
 //    to the file deal.II/doc/license.html for the  text  and
 //    further information on this license.
 //
-//----------------------------  rt_13.cc  ---------------------------
+//----------------------------  rt_15.cc  ---------------------------
 
-// Like rt_11, but for gradients (just as rt_12 is to rt_10)
+// Like rt_15, but use FESubfaceValues
 
 #include "../tests.h"
 #include <base/quadrature_lib.h>
@@ -37,7 +37,7 @@
 #define PRECISION 2
 
 
-std::ofstream logfile ("rt_13/output");
+std::ofstream logfile ("rt_15/output");
 
 template<int dim>
 void
@@ -61,8 +61,8 @@ test (const unsigned int degree)
 
       QTrapez<dim-1> quadrature;
 
-      FEFaceValues<dim> fe_values (fe_rt, quadrature, update_gradients);
-      fe_values.reinit (dof.begin_active(), 0);
+      FESubfaceValues<dim> fe_values (fe_rt, quadrature, update_gradients);
+      fe_values.reinit (dof.begin_active(), 0, 0);
       for (unsigned int q=0; q<quadrature.n_quadrature_points; ++q)
        {
          deallog << "    Quadrature point " << q << ": ";

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.