From: Wolfgang Bangerth Date: Tue, 29 Sep 2020 21:59:14 +0000 (-0600) Subject: Do one thing at a time. X-Git-Tag: v9.3.0-rc1~1056^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4e0e1a3b6e6e1311d2e08b508a34c6267dc03d5;p=dealii.git Do one thing at a time. Specifically, first deal with enumerating degrees of freedom, then with renumbering. Don't interlace these two operations. --- 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);