]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify code.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 24 Feb 2006 15:45:40 +0000 (15:45 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 24 Feb 2006 15:45:40 +0000 (15:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@12490 0785d39b-7218-0410-832d-ea1e28bc413d

tests/hp/crash_01.cc

index 3c81ab1c393baa31ffc12166268a54c1f0b92a04..4c1b796577016688a2d0c4d95ea49cf7d9e7334e 100644 (file)
@@ -35,8 +35,7 @@ void test ()
   Triangulation<dim> tria;
   GridGenerator::hyper_cube(tria);
 
-  hp::FECollection<dim> fe_collection;
-  fe_collection.push_back (FE_DGQ<dim> (1));
+  const hp::FECollection<dim> fe_collection (FE_DGQ<dim> (1));
 
   hp::DoFHandler<dim> dof_handler(tria);
   tria.refine_global(1);

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.