From d4e0e1a3b6e6e1311d2e08b508a34c6267dc03d5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 29 Sep 2020 15:59:14 -0600 Subject: [PATCH] Do one thing at a time. Specifically, first deal with enumerating degrees of freedom, then with renumbering. Don't interlace these two operations. --- examples/step-32/step-32.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/step-32/step-32.cc b/examples/step-32/step-32.cc index f74c6f741f..727751241a 100644 --- a/examples/step-32/step-32.cc +++ b/examples/step-32/step-32.cc @@ -1830,9 +1830,10 @@ namespace Step32 { TimerOutput::Scope timing_section(computing_timer, "Setup dof systems"); + stokes_dof_handler.distribute_dofs(stokes_fe); + std::vector stokes_sub_blocks(dim + 1, 0); stokes_sub_blocks[dim] = 1; - stokes_dof_handler.distribute_dofs(stokes_fe); DoFRenumbering::component_wise(stokes_dof_handler, stokes_sub_blocks); temperature_dof_handler.distribute_dofs(temperature_fe); -- 2.39.5