]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust commentary
authorJonathan Robey <class4kayaker@gmail.com>
Sat, 17 Sep 2016 17:36:23 +0000 (10:36 -0700)
committerJonathan Robey <class4kayaker@gmail.com>
Sat, 17 Sep 2016 17:36:23 +0000 (10:36 -0700)
examples/step-31/step-31.cc

index 7970152db53c38757a9676bb88380cf787a57f27..6a097b9a645c2405732001a44224c49226625901 100644 (file)
@@ -2065,11 +2065,10 @@ namespace Step31
     // another copy of temporary vectors for temperature (now corresponding to
     // the new grid), and let the interpolate function do the job. Then, the
     // resulting array of vectors is written into the respective vector member
-    // variables. For the Stokes vector, everything is just the same &ndash;
-    // except that we do not need another temporary vector since we just
-    // interpolate a single vector. In the end, we have to tell the program
-    // that the matrices and preconditioners need to be regenerated, since the
-    // mesh has changed.
+    // variables.
+    //
+    // Remember that the set of constraints will be updated for the new
+    // triangulation in the setup_dofs() call.
     triangulation.execute_coarsening_and_refinement ();
     setup_dofs ();
 
@@ -2081,9 +2080,15 @@ namespace Step31
     temperature_solution = tmp[0];
     old_temperature_solution = tmp[1];
 
+    // After the solution has been transfered we then enforce the constraints
+    // on the transfered solution.
     temperature_constraints.distribute(temperature_solution);
     temperature_constraints.distribute(old_temperature_solution);
 
+    // For the Stokes vector, everything is just the same &ndash; except that
+    // we do not need another temporary vector since we just interpolate a
+    // single vector. In the end, we have to tell the program that the matrices
+    // and preconditioners need to be regenerated, since the mesh has changed.
     stokes_trans.interpolate (x_stokes, stokes_solution);
 
     stokes_constraints.distribute(stokes_solution);

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.