]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Generate hanging node constraints before boundary values, as per recent
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Sep 2010 12:51:12 +0000 (12:51 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Sep 2010 12:51:12 +0000 (12:51 +0000)
discussions on the mailing list.

git-svn-id: https://svn.dealii.org/trunk@22013 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-27/step-27.cc

index 48c044a94235615fa602239cd3964514f1ba8489..f05d751ca320ff0bbe9633515fc6b68e5680467c 100644 (file)
@@ -3,7 +3,7 @@
 
 /*    $Id$       */
 /*                                                                */
-/*    Copyright (C) 2006, 2007, 2008, 2009 by the deal.II authors */
+/*    Copyright (C) 2006, 2007, 2008, 2009, 2010 by the deal.II authors */
 /*                                                                */
 /*    This file is subject to QPL and may not be  distributed     */
 /*    without copyright and license information. Please refer     */
@@ -255,12 +255,12 @@ void LaplaceProblem<dim>::setup_system ()
   system_rhs.reinit (dof_handler.n_dofs());
 
   constraints.clear ();
+  DoFTools::make_hanging_node_constraints (dof_handler,
+                                          constraints);
   VectorTools::interpolate_boundary_values (dof_handler,
                                            0,
                                            ZeroFunction<dim>(),
                                            constraints);
-  DoFTools::make_hanging_node_constraints (dof_handler,
-                                          constraints);
   constraints.close ();
 
   CompressedSetSparsityPattern 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.