]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a test. 6441/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 May 2018 21:07:29 +0000 (15:07 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 May 2018 21:07:29 +0000 (15:07 -0600)
tests/hp/fe_nothing_22.cc [new file with mode: 0644]
tests/hp/fe_nothing_22.output [new file with mode: 0644]

diff --git a/tests/hp/fe_nothing_22.cc b/tests/hp/fe_nothing_22.cc
new file mode 100644 (file)
index 0000000..f6ddcd7
--- /dev/null
@@ -0,0 +1,61 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2009 - 2017 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.
+//
+// ---------------------------------------------------------------------
+
+
+
+// Test FE_Nothing::operator==()
+
+
+#include "../tests.h"
+#include <deal.II/base/quadrature_lib.h>
+#include <deal.II/fe/fe_nothing.h>
+#include <deal.II/fe/fe_q.h>
+#include <deal.II/fe/fe_system.h>
+#include <deal.II/grid/tria.h>
+#include <deal.II/grid/grid_generator.h>
+#include <deal.II/grid/tria_accessor.h>
+#include <deal.II/grid/tria_iterator.h>
+#include <deal.II/grid/grid_refinement.h>
+#include <deal.II/dofs/dof_accessor.h>
+#include <deal.II/dofs/dof_tools.h>
+#include <deal.II/dofs/dof_handler.h>
+#include <deal.II/numerics/vector_tools.h>
+#include <deal.II/base/function.h>
+
+
+
+
+template <int dim>
+void test ()
+{
+  deallog << std::boolalpha;
+  deallog << (FE_Nothing<dim>(1) == FE_Nothing<dim>(1, false)) << std::endl;
+  deallog << (FE_Nothing<dim>(1) == FE_Nothing<dim>(2)) << std::endl;
+  deallog << (FE_Nothing<dim>(2, true) == FE_Nothing<dim>(2, false)) << std::endl;
+  deallog << (FE_Nothing<dim>(1, true) == FE_Nothing<dim>(2, true)) << std::endl;
+}
+
+
+
+int main ()
+{
+  initlog();
+
+  test<1> ();
+  test<2> ();
+  test<3> ();
+
+  deallog << "OK" << std::endl;
+}
diff --git a/tests/hp/fe_nothing_22.output b/tests/hp/fe_nothing_22.output
new file mode 100644 (file)
index 0000000..9ce031b
--- /dev/null
@@ -0,0 +1,14 @@
+
+DEAL::true
+DEAL::false
+DEAL::false
+DEAL::false
+DEAL::true
+DEAL::false
+DEAL::false
+DEAL::false
+DEAL::true
+DEAL::false
+DEAL::false
+DEAL::false
+DEAL::OK

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.