]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do one thing at a time. 10982/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 29 Sep 2020 21:59:14 +0000 (15:59 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 29 Sep 2020 21:59:14 +0000 (15:59 -0600)
Specifically, first deal with enumerating degrees of freedom, then with renumbering.
Don't interlace these two operations.

examples/step-32/step-32.cc

index f74c6f741f8fc140319b833b33386dc2fa457a96..727751241ae742e3465e64af157b2abf1a57798c 100644 (file)
@@ -1830,9 +1830,10 @@ namespace Step32
   {
     TimerOutput::Scope timing_section(computing_timer, "Setup dof systems");
 
+    stokes_dof_handler.distribute_dofs(stokes_fe);
+
     std::vector<unsigned int> 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);

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.