]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix step-16. 6636/head
authorCe Qin <qince168@gmail.com>
Sun, 20 May 2018 14:43:31 +0000 (22:43 +0800)
committerCe Qin <qince168@gmail.com>
Mon, 21 May 2018 01:43:05 +0000 (09:43 +0800)
doc/news/changes/minor/20180521CeQin [new file with mode: 0644]
examples/step-16/step-16.cc

diff --git a/doc/news/changes/minor/20180521CeQin b/doc/news/changes/minor/20180521CeQin
new file mode 100644 (file)
index 0000000..046ab09
--- /dev/null
@@ -0,0 +1,2 @@
+Fixed: Step-16 was broken caused by uninitialized variables, it is now fixed.
+(Ce Qin, 2018/05/21)
index c27867f6c204581c1928b2ba6bf08d41a90e8f7c..345a027c226a1d396ad9182fa3ca556a54b24135 100644 (file)
@@ -279,7 +279,7 @@ namespace Step16
     constraints.clear ();
     DoFTools::make_hanging_node_constraints (dof_handler, constraints);
 
-    std::set<types::boundary_id>          dirichlet_boundary_ids;
+    std::set<types::boundary_id>          dirichlet_boundary_ids = { 0 };
     Functions::ZeroFunction<dim>          homogeneous_dirichlet_bc;
     const typename FunctionMap<dim>::type dirichlet_boundary_functions
     = { { types::boundary_id(0), &homogeneous_dirichlet_bc } };

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.