// refining one cell
tria.begin_active()->set_refine_flag ();
tria.execute_coarsening_and_refinement ();
-
+ tria.refine_global(8-2*dim);
+
FE_Q<dim> fe (1);
DoFHandler<dim> dof_handler (tria);
dof_handler.distribute_dofs (fe);
+ deallog << "Number of dofs = " << dof_handler.n_dofs() << std::endl;
+
SparsityPattern sparsity_pattern;
sparsity_pattern.reinit (dof_handler.n_dofs(),
dof_handler.n_dofs(),
// refining one cell
tria.begin_active()->set_refine_flag ();
tria.execute_coarsening_and_refinement ();
+ tria.refine_global(8-2*dim);
FE_Q<dim> fe (1);
DoFHandler<dim> dof_handler (tria);
dof_handler.distribute_dofs (fe);
+ deallog << "Number of dofs = " << dof_handler.n_dofs() << std::endl;
+
SparsityPattern sparsity_pattern;
sparsity_pattern.reinit (dof_handler.n_dofs(),
dof_handler.n_dofs(),
// refining one cell
tria.begin_active()->set_refine_flag ();
tria.execute_coarsening_and_refinement ();
+ tria.refine_global(8-2*dim);
FE_Q<dim> fe (1);
DoFHandler<dim> dof_handler (tria);
dof_handler.distribute_dofs (fe);
+ deallog << "Number of dofs = " << dof_handler.n_dofs() << std::endl;
+
SparsityPattern sparsity_pattern;
sparsity_pattern.reinit (dof_handler.n_dofs(),
dof_handler.n_dofs(),
// refining one cell
tria.begin_active()->set_refine_flag ();
tria.execute_coarsening_and_refinement ();
+ tria.refine_global(8-2*dim);
FE_Q<dim> fe (1);
DoFHandler<dim> dof_handler (tria);
dof_handler.distribute_dofs (fe);
+ deallog << "Number of dofs = " << dof_handler.n_dofs() << std::endl;
+
SparsityPattern sparsity_pattern;
sparsity_pattern.reinit (dof_handler.n_dofs(),
dof_handler.n_dofs(),