]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-50: avoid get_refinement_edge_boundary_indices
authorTimo Heister <timo.heister@gmail.com>
Sun, 4 Oct 2015 21:03:59 +0000 (17:03 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sun, 4 Oct 2015 21:03:59 +0000 (17:03 -0400)
examples/step-50/step-50.cc

index 205ef37210a6e941861c1392e09778cfa4792033..05964f5c9237e03d37f3ee0ff86edf8bee495d99 100644 (file)
@@ -625,8 +625,12 @@ namespace Step50
 
         boundary_constraints[level].close ();
 
+       boundary_interface_constraints[level].reinit(dofset);
+       // compute indices that are refinement edge and boundary (aka refinement_edge_boundary_indices):
+       IndexSet idxset = mg_constrained_dofs.get_refinement_edge_indices(level) & mg_constrained_dofs.get_boundary_indices(level);
+       
         boundary_interface_constraints[level]
-        .add_lines (mg_constrained_dofs.get_refinement_edge_boundary_indices()[ (level)]);
+        .add_lines (idxset);
         boundary_interface_constraints[level].close ();
       }
 

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.