]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Test for hp branch.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Apr 2004 22:07:15 +0000 (22:07 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Apr 2004 22:07:15 +0000 (22:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@9114 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/Makefile
tests/bits/fe_collection_01.cc [new file with mode: 0644]

index bbc4bfd050e362a3a132ffbe8ae0baa5f6793577..acfe41d4984ac6584e451c0460ddec9cd5b732b3 100644 (file)
@@ -61,6 +61,9 @@ tests_x = anna_? \
          cylinder_shell_* \
          grid_in_*
 
+# tests for the hp branch:
+#        fe_collection_*
+
 ifeq ($(USE_CONTRIB_PETSC),yes)
   tests_x += petsc_*
 endif
diff --git a/tests/bits/fe_collection_01.cc b/tests/bits/fe_collection_01.cc
new file mode 100644 (file)
index 0000000..3d8c0bc
--- /dev/null
@@ -0,0 +1,52 @@
+//----------------------------  fe_tools_01a.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2004 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.
+//
+//----------------------------  fe_tools_01a.cc  ---------------------------
+
+// FECollection would throw an exception when its destructor is called. Check
+// that this is fixed
+
+#include "../tests.h"
+#include <base/logstream.h>
+#include <grid/tria.h>
+#include <grid/tria_iterator.h>
+#include <grid/grid_generator.h>
+#include <dofs/dof_accessor.h>
+#include <dofs/dof_handler.h>
+#include <fe/fe_collection.h>
+#include <fe/fe_q.h>
+
+#include <fstream>
+#include <iostream>
+
+template <int dim>
+void
+check ()
+{
+  const FE_Q<dim> fe_1(1);
+  const FE_Q<dim> fe_2(2);
+
+  FECollection<dim> fc;
+  fc.add_fe (fe_1);
+  fc.add_fe (fe_2);
+}
+
+int main()
+{
+  std::ofstream logfile("deal_solver_01.output");
+  logfile.precision(4);
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  
+  check<1> ();
+  check<2> ();
+  check<3> ();
+}

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.