]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix mpi/periodicity_01
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 30 Jan 2018 15:23:12 +0000 (16:23 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 30 Jan 2018 15:23:12 +0000 (16:23 +0100)
tests/mpi/periodicity_01.cc

index 270fee0c7f46c89bd8e951e967e026d36dc6ebf2..e777c03baf2ebfee5102733c2ac37e38b25958b3 100644 (file)
@@ -147,6 +147,7 @@ namespace Step40
     //Periodic Conditions
     constraints.clear ();
     constraints.reinit (locally_relevant_dofs);
+    DoFTools::make_hanging_node_constraints (dof_handler, constraints);
     for (int i=1; i<dim; ++i)
       DoFTools::make_periodicity_constraints(dof_handler,
                                              /*b_id1*/ 2*i,
@@ -158,7 +159,6 @@ namespace Step40
                                               0,
                                               Functions::ZeroFunction<dim>(),
                                               constraints);
-    DoFTools::make_hanging_node_constraints (dof_handler, constraints);
     constraints.close ();
 
     DynamicSparsityPattern csp (dof_handler.n_dofs(),

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.