]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add comment for interpolate_boundary_values
authorIrabiel Romero <irabiel@yahoo.com>
Thu, 8 Aug 2019 22:13:54 +0000 (18:13 -0400)
committerDavid Wells <drwells@email.unc.edu>
Sun, 25 Aug 2019 21:47:49 +0000 (17:47 -0400)
examples/step-4/step-4.cc

index 7cef32e6b388b2d48bdc35caaf0e9b15f602def4..0ab6776ce1aed5fbf7f70d8ee63f646686df6edf 100644 (file)
@@ -410,12 +410,20 @@ void Step4<dim>::assemble_system()
         }
     }
 
-
   // As the final step in this function, we wanted to have non-homogeneous
   // boundary values in this example, unlike the one before. This is a simple
   // task, we only have to replace the Functions::ZeroFunction used there by an
   // object of the class which describes the boundary values we would like to
   // use (i.e. the <code>BoundaryValues</code> class declared above):
+  //
+  // The function VectorTools::interpolate_boundary_values() will only work
+  // on faces that have been marked with boundary indicator 0 (because that's
+  // what we say the function should work on with the second argument below).
+  // If there are faces with boundary id other than 0, then the function
+  // interpolate_boundary_values will do nothing on these faces. For
+  // the Laplace equation doing nothing is equivalent to assuming that
+  // on those parts of the boundary, zero Neumann
+  // boundary condition hold.
   std::map<types::global_dof_index, double> boundary_values;
   VectorTools::interpolate_boundary_values(dof_handler,
                                            0,

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.