]> https://gitweb.dealii.org/ - dealii.git/commitdiff
This test can now be made to actually work
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 18 Feb 2006 00:55:21 +0000 (00:55 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 18 Feb 2006 00:55:21 +0000 (00:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@12407 0785d39b-7218-0410-832d-ea1e28bc413d

tests/hp/crash_01.cc
tests/hp/crash_01/cmp/generic [new file with mode: 0644]

index fc607c55630528eec02425e1529d163e3382edd0..b5bcb84dd661320461f245531a3618fabf4963e2 100644 (file)
 #include <grid/grid_generator.h>
 #include <grid/tria_accessor.h>
 #include <grid/grid_out.h>
-#include <fe/fe_dgq.h>
+#include <grid/tria_iterator.h>
 #include <dofs/hp_dof_handler.h>
+#include <dofs/dof_accessor.h>
+#include <fe/fe_dgq.h>
 
 #include <fstream>
 
@@ -44,6 +46,12 @@ int main ()
     fe_collection.push_back (FE_DGQ<dim> (1));
 
     hp::DoFHandler<dim> dof_handler(tria);
+    tria.refine_global(1);
+    for (hp::DoFHandler<dim>::active_cell_iterator
+           cell=dof_handler.begin_active();
+         cell!=dof_handler.end(); ++cell)
+      cell->set_active_fe_index (0);
+         
     dof_handler.distribute_dofs(fe_collection);
   }
 
@@ -56,6 +64,12 @@ int main ()
     fe_collection.push_back (FE_DGQ<dim> (1));
 
     hp::DoFHandler<dim> dof_handler(tria);
+    tria.refine_global(1);
+    for (hp::DoFHandler<dim>::active_cell_iterator
+           cell=dof_handler.begin_active();
+         cell!=dof_handler.end(); ++cell)
+      cell->set_active_fe_index (0);
+
     dof_handler.distribute_dofs(fe_collection);
   }
   
diff --git a/tests/hp/crash_01/cmp/generic b/tests/hp/crash_01/cmp/generic
new file mode 100644 (file)
index 0000000..0fd8fc1
--- /dev/null
@@ -0,0 +1,2 @@
+
+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.