]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add some tests for the P1 nonconforming nonparametirc element.
authorJaeryun Yim <jaeryun.yim@gmail.com>
Mon, 11 Jan 2016 10:55:45 +0000 (19:55 +0900)
committerJaeryun Yim <jaeryun.yim@gmail.com>
Fri, 16 Sep 2016 12:07:20 +0000 (21:07 +0900)
They are shape value and shape gradient tests on a square, a rectangle and a parallelogram.
These results must coincide with the results of the parametric version.

12 files changed:
tests/fe/p1nc_nonparametric_01.cc [new file with mode: 0644]
tests/fe/p1nc_nonparametric_01.output [new file with mode: 0644]
tests/fe/p1nc_nonparametric_02.cc [new file with mode: 0644]
tests/fe/p1nc_nonparametric_02.output [new file with mode: 0644]
tests/fe/p1nc_nonparametric_03.cc [new file with mode: 0644]
tests/fe/p1nc_nonparametric_03.output [new file with mode: 0644]
tests/fe/p1nc_nonparametric_05.cc [new file with mode: 0644]
tests/fe/p1nc_nonparametric_05.output [new file with mode: 0644]
tests/fe/p1nc_nonparametric_06.cc [new file with mode: 0644]
tests/fe/p1nc_nonparametric_06.output [new file with mode: 0644]
tests/fe/p1nc_nonparametric_07.cc [new file with mode: 0644]
tests/fe/p1nc_nonparametric_07.output [new file with mode: 0644]

diff --git a/tests/fe/p1nc_nonparametric_01.cc b/tests/fe/p1nc_nonparametric_01.cc
new file mode 100644 (file)
index 0000000..357b1fd
--- /dev/null
@@ -0,0 +1,77 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2015 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+
+
+// check the P1NC nonparametric element on a square
+
+#include "../tests.h"
+#include <deal.II/base/logstream.h>
+#include <deal.II/base/quadrature_lib.h>
+#include <deal.II/grid/tria.h>
+#include <deal.II/grid/grid_generator.h>
+#include <deal.II/dofs/dof_handler.h>
+#include <deal.II/fe/fe_values.h>
+
+#include <deal.II/fe/fe_p1nc.h>
+
+#include <fstream>
+#include <string>
+
+#define PRECISION 5
+
+
+
+template<int dim>
+void
+check()
+{
+  Triangulation<dim> triangulation;
+  GridGenerator::hyper_cube (triangulation, 0, 5);
+
+  FE_P1NCNonparametric fe;
+  DoFHandler<dim> dof_handler (triangulation);
+  dof_handler.distribute_dofs(fe);
+
+  QGauss<dim> quadrature(3);
+  FEValues<dim> fe_values (fe, quadrature, update_values | update_q_points);
+  fe_values.reinit (dof_handler.begin_active());
+
+  for (unsigned int q=0; q<quadrature.size(); ++q)
+    {
+      deallog << "index=" << q
+              << " position=" << fe_values.quadrature_point(q)
+              << " values=";
+      for (unsigned int i=0; i<fe.dofs_per_cell; ++i)
+        deallog << fe_values.shape_value(i,q) << ' ';
+      deallog << std::endl;
+    }
+}
+
+int
+main()
+{
+  std::ofstream logfile ("output");
+  deallog << std::setprecision(PRECISION);
+  deallog << std::fixed;
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
+  check<2>();
+}
+
+
+
diff --git a/tests/fe/p1nc_nonparametric_01.output b/tests/fe/p1nc_nonparametric_01.output
new file mode 100644 (file)
index 0000000..5436e9b
--- /dev/null
@@ -0,0 +1,10 @@
+
+DEAL::index=0 position=0.56351 0.56351 values=0.63730 0.25000 0.25000 -0.13730 
+DEAL::index=1 position=2.50000 0.56351 values=0.44365 0.44365 0.05635 0.05635 
+DEAL::index=2 position=4.43649 0.56351 values=0.25000 0.63730 -0.13730 0.25000 
+DEAL::index=3 position=0.56351 2.50000 values=0.44365 0.05635 0.44365 0.05635 
+DEAL::index=4 position=2.50000 2.50000 values=0.25000 0.25000 0.25000 0.25000 
+DEAL::index=5 position=4.43649 2.50000 values=0.05635 0.44365 0.05635 0.44365 
+DEAL::index=6 position=0.56351 4.43649 values=0.25000 -0.13730 0.63730 0.25000 
+DEAL::index=7 position=2.50000 4.43649 values=0.05635 0.05635 0.44365 0.44365 
+DEAL::index=8 position=4.43649 4.43649 values=-0.13730 0.25000 0.25000 0.63730 
diff --git a/tests/fe/p1nc_nonparametric_02.cc b/tests/fe/p1nc_nonparametric_02.cc
new file mode 100644 (file)
index 0000000..ad615aa
--- /dev/null
@@ -0,0 +1,89 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2015 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+
+
+// check the P1NC nonparametric element on a rectangle
+
+#include "../tests.h"
+#include <deal.II/base/logstream.h>
+#include <deal.II/base/quadrature_lib.h>
+#include <deal.II/grid/tria.h>
+#include <deal.II/grid/grid_generator.h>
+#include <deal.II/grid/grid_tools.h>
+#include <deal.II/dofs/dof_handler.h>
+#include <deal.II/fe/fe_values.h>
+
+#include <deal.II/fe/fe_p1nc.h>
+
+#include <fstream>
+#include <string>
+
+#define PRECISION 5
+
+
+template<int dim>
+Point<dim> stretch (const Point<dim> &p)
+{
+  Point<dim> q = p ;
+  q(dim-1) *= 2. ;
+
+  return q ;
+}
+
+
+
+template<int dim>
+void
+check()
+{
+  Triangulation<dim> triangulation;
+  GridGenerator::hyper_cube (triangulation, 0., 5.);
+  GridTools::transform (&stretch<dim>, triangulation) ;
+
+  FE_P1NCNonparametric fe;
+  DoFHandler<dim> dof_handler (triangulation);
+  dof_handler.distribute_dofs(fe);
+
+  QGauss<dim> quadrature(3);
+  FEValues<dim> fe_values (fe, quadrature, update_values | update_q_points);
+  fe_values.reinit (dof_handler.begin_active());
+
+  for (unsigned int q=0; q<quadrature.size(); ++q)
+    {
+      deallog << "index=" << q
+              << " position=" << fe_values.quadrature_point(q)
+              << " values=";
+      for (unsigned int i=0; i<fe.dofs_per_cell; ++i)
+        deallog << fe_values.shape_value(i,q) << ' ';
+      deallog << std::endl;
+    }
+}
+
+int
+main()
+{
+  std::ofstream logfile ("output");
+  deallog << std::setprecision(PRECISION);
+  deallog << std::fixed;
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
+  check<2>();
+}
+
+
+
diff --git a/tests/fe/p1nc_nonparametric_02.output b/tests/fe/p1nc_nonparametric_02.output
new file mode 100644 (file)
index 0000000..4d62e4c
--- /dev/null
@@ -0,0 +1,10 @@
+
+DEAL::index=0 position=0.56351 1.12702 values=0.63730 0.25000 0.25000 -0.13730 
+DEAL::index=1 position=2.50000 1.12702 values=0.44365 0.44365 0.05635 0.05635 
+DEAL::index=2 position=4.43649 1.12702 values=0.25000 0.63730 -0.13730 0.25000 
+DEAL::index=3 position=0.56351 5.00000 values=0.44365 0.05635 0.44365 0.05635 
+DEAL::index=4 position=2.50000 5.00000 values=0.25000 0.25000 0.25000 0.25000 
+DEAL::index=5 position=4.43649 5.00000 values=0.05635 0.44365 0.05635 0.44365 
+DEAL::index=6 position=0.56351 8.87298 values=0.25000 -0.13730 0.63730 0.25000 
+DEAL::index=7 position=2.50000 8.87298 values=0.05635 0.05635 0.44365 0.44365 
+DEAL::index=8 position=4.43649 8.87298 values=-0.13730 0.25000 0.25000 0.63730 
diff --git a/tests/fe/p1nc_nonparametric_03.cc b/tests/fe/p1nc_nonparametric_03.cc
new file mode 100644 (file)
index 0000000..3856fc2
--- /dev/null
@@ -0,0 +1,93 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2015 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+
+
+// check the P1NC nonparametric element on a parallelogram
+
+#include "../tests.h"
+#include <deal.II/base/logstream.h>
+#include <deal.II/base/quadrature_lib.h>
+#include <deal.II/grid/tria.h>
+#include <deal.II/grid/grid_generator.h>
+#include <deal.II/grid/grid_tools.h>
+#include <deal.II/dofs/dof_handler.h>
+#include <deal.II/fe/fe_values.h>
+
+#include <deal.II/fe/fe_p1nc.h>
+
+#include <fstream>
+#include <string>
+
+#define PRECISION 5
+
+
+template<int dim>
+Point<dim> affine (const Point<dim> &p)
+{
+  Point<dim> q = p ;
+  if (dim>=2)
+    {
+      q(0) = 2.*p(0) + p(1) ;
+      q(1) = p(0) + 3.*p(1) ;
+    }
+
+  return q ;
+}
+
+
+
+template<int dim>
+void
+check()
+{
+  Triangulation<dim> triangulation;
+  GridGenerator::hyper_cube (triangulation, 0., 1.);
+  GridTools::transform (&affine<dim>, triangulation) ;
+
+  FE_P1NCNonparametric fe;
+  DoFHandler<dim> dof_handler (triangulation);
+  dof_handler.distribute_dofs(fe);
+
+  QGauss<dim> quadrature(3);
+  FEValues<dim> fe_values (fe, quadrature, update_values | update_q_points);
+  fe_values.reinit (dof_handler.begin_active());
+
+  for (unsigned int q=0; q<quadrature.size(); ++q)
+    {
+      deallog << "index=" << q
+              << " position=" << fe_values.quadrature_point(q)
+              << " values=";
+      for (unsigned int i=0; i<fe.dofs_per_cell; ++i)
+        deallog << fe_values.shape_value(i,q) << ' ';
+      deallog << std::endl;
+    }
+}
+
+int
+main()
+{
+  std::ofstream logfile ("output");
+  deallog << std::setprecision(PRECISION);
+  deallog << std::fixed;
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
+  check<2>();
+}
+
+
+
diff --git a/tests/fe/p1nc_nonparametric_03.output b/tests/fe/p1nc_nonparametric_03.output
new file mode 100644 (file)
index 0000000..4f8444a
--- /dev/null
@@ -0,0 +1,10 @@
+
+DEAL::index=0 position=0.33810 0.45081 values=0.63730 0.25000 0.25000 -0.13730 
+DEAL::index=1 position=1.11270 0.83810 values=0.44365 0.44365 0.05635 0.05635 
+DEAL::index=2 position=1.88730 1.22540 values=0.25000 0.63730 -0.13730 0.25000 
+DEAL::index=3 position=0.72540 1.61270 values=0.44365 0.05635 0.44365 0.05635 
+DEAL::index=4 position=1.50000 2.00000 values=0.25000 0.25000 0.25000 0.25000 
+DEAL::index=5 position=2.27460 2.38730 values=0.05635 0.44365 0.05635 0.44365 
+DEAL::index=6 position=1.11270 2.77460 values=0.25000 -0.13730 0.63730 0.25000 
+DEAL::index=7 position=1.88730 3.16190 values=0.05635 0.05635 0.44365 0.44365 
+DEAL::index=8 position=2.66190 3.54919 values=-0.13730 0.25000 0.25000 0.63730 
diff --git a/tests/fe/p1nc_nonparametric_05.cc b/tests/fe/p1nc_nonparametric_05.cc
new file mode 100644 (file)
index 0000000..b1efa90
--- /dev/null
@@ -0,0 +1,77 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2015 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+
+
+// check the P1NC nonparametric element's gradient on a square
+
+#include "../tests.h"
+#include <deal.II/base/logstream.h>
+#include <deal.II/base/quadrature_lib.h>
+#include <deal.II/grid/tria.h>
+#include <deal.II/grid/grid_generator.h>
+#include <deal.II/dofs/dof_handler.h>
+#include <deal.II/fe/fe_values.h>
+
+#include <deal.II/fe/fe_p1nc.h>
+
+#include <fstream>
+#include <string>
+
+#define PRECISION 5
+
+
+
+template<int dim>
+void
+check()
+{
+  Triangulation<dim> triangulation;
+  GridGenerator::hyper_cube (triangulation, 0, 5);
+
+  FE_P1NCNonparametric fe;
+  DoFHandler<dim> dof_handler (triangulation);
+  dof_handler.distribute_dofs(fe);
+
+  QGauss<dim> quadrature(3);
+  FEValues<dim> fe_values (fe, quadrature, update_gradients | update_q_points);
+  fe_values.reinit (dof_handler.begin_active());
+
+  for (unsigned int q=0; q<quadrature.size(); ++q)
+    {
+      deallog << "index=" << q
+              << " position=" << fe_values.quadrature_point(q)
+              << " values=";
+      for (unsigned int i=0; i<fe.dofs_per_cell; ++i)
+        deallog << '[' << fe_values.shape_grad(i,q) << "] ";
+      deallog << std::endl;
+    }
+}
+
+int
+main()
+{
+  std::ofstream logfile ("output");
+  deallog << std::setprecision(PRECISION);
+  deallog << std::fixed;
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
+  check<2>();
+}
+
+
+
diff --git a/tests/fe/p1nc_nonparametric_05.output b/tests/fe/p1nc_nonparametric_05.output
new file mode 100644 (file)
index 0000000..51ce573
--- /dev/null
@@ -0,0 +1,10 @@
+
+DEAL::index=0 position=0.56351 0.56351 values=[-0.10000 -0.10000] [0.10000 -0.10000] [-0.10000 0.10000] [0.10000 0.10000] 
+DEAL::index=1 position=2.50000 0.56351 values=[-0.10000 -0.10000] [0.10000 -0.10000] [-0.10000 0.10000] [0.10000 0.10000] 
+DEAL::index=2 position=4.43649 0.56351 values=[-0.10000 -0.10000] [0.10000 -0.10000] [-0.10000 0.10000] [0.10000 0.10000] 
+DEAL::index=3 position=0.56351 2.50000 values=[-0.10000 -0.10000] [0.10000 -0.10000] [-0.10000 0.10000] [0.10000 0.10000] 
+DEAL::index=4 position=2.50000 2.50000 values=[-0.10000 -0.10000] [0.10000 -0.10000] [-0.10000 0.10000] [0.10000 0.10000] 
+DEAL::index=5 position=4.43649 2.50000 values=[-0.10000 -0.10000] [0.10000 -0.10000] [-0.10000 0.10000] [0.10000 0.10000] 
+DEAL::index=6 position=0.56351 4.43649 values=[-0.10000 -0.10000] [0.10000 -0.10000] [-0.10000 0.10000] [0.10000 0.10000] 
+DEAL::index=7 position=2.50000 4.43649 values=[-0.10000 -0.10000] [0.10000 -0.10000] [-0.10000 0.10000] [0.10000 0.10000] 
+DEAL::index=8 position=4.43649 4.43649 values=[-0.10000 -0.10000] [0.10000 -0.10000] [-0.10000 0.10000] [0.10000 0.10000] 
diff --git a/tests/fe/p1nc_nonparametric_06.cc b/tests/fe/p1nc_nonparametric_06.cc
new file mode 100644 (file)
index 0000000..da4d46b
--- /dev/null
@@ -0,0 +1,89 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2015 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+
+
+// check the P1NC nonparametric element's gradient on a rectangle
+
+#include "../tests.h"
+#include <deal.II/base/logstream.h>
+#include <deal.II/base/quadrature_lib.h>
+#include <deal.II/grid/tria.h>
+#include <deal.II/grid/grid_generator.h>
+#include <deal.II/grid/grid_tools.h>
+#include <deal.II/dofs/dof_handler.h>
+#include <deal.II/fe/fe_values.h>
+
+#include <deal.II/fe/fe_p1nc.h>
+
+#include <fstream>
+#include <string>
+
+#define PRECISION 5
+
+
+template<int dim>
+Point<dim> stretch (const Point<dim> &p)
+{
+  Point<dim> q = p ;
+  q(dim-1) *= 2. ;
+
+  return q ;
+}
+
+
+
+template<int dim>
+void
+check()
+{
+  Triangulation<dim> triangulation;
+  GridGenerator::hyper_cube (triangulation, 0., 5.);
+  GridTools::transform (&stretch<dim>, triangulation) ;
+
+  FE_P1NCNonparametric fe;
+  DoFHandler<dim> dof_handler (triangulation);
+  dof_handler.distribute_dofs(fe);
+
+  QGauss<dim> quadrature(3);
+  FEValues<dim> fe_values (fe, quadrature, update_gradients | update_q_points);
+  fe_values.reinit (dof_handler.begin_active());
+
+  for (unsigned int q=0; q<quadrature.size(); ++q)
+    {
+      deallog << "index=" << q
+              << " position=" << fe_values.quadrature_point(q)
+              << " values=";
+      for (unsigned int i=0; i<fe.dofs_per_cell; ++i)
+        deallog << '[' << fe_values.shape_grad(i,q) << "] ";
+      deallog << std::endl;
+    }
+}
+
+int
+main()
+{
+  std::ofstream logfile ("output");
+  deallog << std::setprecision(PRECISION);
+  deallog << std::fixed;
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
+  check<2>();
+}
+
+
+
diff --git a/tests/fe/p1nc_nonparametric_06.output b/tests/fe/p1nc_nonparametric_06.output
new file mode 100644 (file)
index 0000000..2d11da0
--- /dev/null
@@ -0,0 +1,10 @@
+
+DEAL::index=0 position=0.56351 1.12702 values=[-0.10000 -0.05000] [0.10000 -0.05000] [-0.10000 0.05000] [0.10000 0.05000] 
+DEAL::index=1 position=2.50000 1.12702 values=[-0.10000 -0.05000] [0.10000 -0.05000] [-0.10000 0.05000] [0.10000 0.05000] 
+DEAL::index=2 position=4.43649 1.12702 values=[-0.10000 -0.05000] [0.10000 -0.05000] [-0.10000 0.05000] [0.10000 0.05000] 
+DEAL::index=3 position=0.56351 5.00000 values=[-0.10000 -0.05000] [0.10000 -0.05000] [-0.10000 0.05000] [0.10000 0.05000] 
+DEAL::index=4 position=2.50000 5.00000 values=[-0.10000 -0.05000] [0.10000 -0.05000] [-0.10000 0.05000] [0.10000 0.05000] 
+DEAL::index=5 position=4.43649 5.00000 values=[-0.10000 -0.05000] [0.10000 -0.05000] [-0.10000 0.05000] [0.10000 0.05000] 
+DEAL::index=6 position=0.56351 8.87298 values=[-0.10000 -0.05000] [0.10000 -0.05000] [-0.10000 0.05000] [0.10000 0.05000] 
+DEAL::index=7 position=2.50000 8.87298 values=[-0.10000 -0.05000] [0.10000 -0.05000] [-0.10000 0.05000] [0.10000 0.05000] 
+DEAL::index=8 position=4.43649 8.87298 values=[-0.10000 -0.05000] [0.10000 -0.05000] [-0.10000 0.05000] [0.10000 0.05000] 
diff --git a/tests/fe/p1nc_nonparametric_07.cc b/tests/fe/p1nc_nonparametric_07.cc
new file mode 100644 (file)
index 0000000..bdcdadf
--- /dev/null
@@ -0,0 +1,93 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2015 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+
+
+// check the P1NC nonparametric element's gradient on a parallelogram
+
+#include "../tests.h"
+#include <deal.II/base/logstream.h>
+#include <deal.II/base/quadrature_lib.h>
+#include <deal.II/grid/tria.h>
+#include <deal.II/grid/grid_generator.h>
+#include <deal.II/grid/grid_tools.h>
+#include <deal.II/dofs/dof_handler.h>
+#include <deal.II/fe/fe_values.h>
+
+#include <deal.II/fe/fe_p1nc.h>
+
+#include <fstream>
+#include <string>
+
+#define PRECISION 5
+
+
+template<int dim>
+Point<dim> affine (const Point<dim> &p)
+{
+  Point<dim> q = p ;
+  if (dim>=2)
+    {
+      q(0) = 2.*p(0) + p(1) ;
+      q(1) = p(0) + 3.*p(1) ;
+    }
+
+  return q ;
+}
+
+
+
+template<int dim>
+void
+check()
+{
+  Triangulation<dim> triangulation;
+  GridGenerator::hyper_cube (triangulation, 0., 1.);
+  GridTools::transform (&affine<dim>, triangulation) ;
+
+  FE_P1NCNonparametric fe;
+  DoFHandler<dim> dof_handler (triangulation);
+  dof_handler.distribute_dofs(fe);
+
+  QGauss<dim> quadrature(3);
+  FEValues<dim> fe_values (fe, quadrature, update_gradients | update_q_points);
+  fe_values.reinit (dof_handler.begin_active());
+
+  for (unsigned int q=0; q<quadrature.size(); ++q)
+    {
+      deallog << "index=" << q
+              << " position=" << fe_values.quadrature_point(q)
+              << " values=";
+      for (unsigned int i=0; i<fe.dofs_per_cell; ++i)
+        deallog << '[' << fe_values.shape_grad(i,q) << "] ";
+      deallog << std::endl;
+    }
+}
+
+int
+main()
+{
+  std::ofstream logfile ("output");
+  deallog << std::setprecision(PRECISION);
+  deallog << std::fixed;
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
+  check<2>();
+}
+
+
+
diff --git a/tests/fe/p1nc_nonparametric_07.output b/tests/fe/p1nc_nonparametric_07.output
new file mode 100644 (file)
index 0000000..d9f5209
--- /dev/null
@@ -0,0 +1,10 @@
+
+DEAL::index=0 position=0.33810 0.45081 values=[-0.20000 -0.10000] [0.40000 -0.30000] [-0.40000 0.30000] [0.20000 0.10000] 
+DEAL::index=1 position=1.11270 0.83810 values=[-0.20000 -0.10000] [0.40000 -0.30000] [-0.40000 0.30000] [0.20000 0.10000] 
+DEAL::index=2 position=1.88730 1.22540 values=[-0.20000 -0.10000] [0.40000 -0.30000] [-0.40000 0.30000] [0.20000 0.10000] 
+DEAL::index=3 position=0.72540 1.61270 values=[-0.20000 -0.10000] [0.40000 -0.30000] [-0.40000 0.30000] [0.20000 0.10000] 
+DEAL::index=4 position=1.50000 2.00000 values=[-0.20000 -0.10000] [0.40000 -0.30000] [-0.40000 0.30000] [0.20000 0.10000] 
+DEAL::index=5 position=2.27460 2.38730 values=[-0.20000 -0.10000] [0.40000 -0.30000] [-0.40000 0.30000] [0.20000 0.10000] 
+DEAL::index=6 position=1.11270 2.77460 values=[-0.20000 -0.10000] [0.40000 -0.30000] [-0.40000 0.30000] [0.20000 0.10000] 
+DEAL::index=7 position=1.88730 3.16190 values=[-0.20000 -0.10000] [0.40000 -0.30000] [-0.40000 0.30000] [0.20000 0.10000] 
+DEAL::index=8 position=2.66190 3.54919 values=[-0.20000 -0.10000] [0.40000 -0.30000] [-0.40000 0.30000] [0.20000 0.10000] 

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.