From: Ce Qin Date: Sun, 20 May 2018 14:43:31 +0000 (+0800) Subject: Fix step-16. X-Git-Tag: v9.1.0-rc1~1117^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d1af5b46ff1940bc197d308559a0faa3e071e4c;p=dealii.git Fix step-16. --- diff --git a/doc/news/changes/minor/20180521CeQin b/doc/news/changes/minor/20180521CeQin new file mode 100644 index 0000000000..046ab09ae7 --- /dev/null +++ b/doc/news/changes/minor/20180521CeQin @@ -0,0 +1,2 @@ +Fixed: Step-16 was broken caused by uninitialized variables, it is now fixed. +(Ce Qin, 2018/05/21) diff --git a/examples/step-16/step-16.cc b/examples/step-16/step-16.cc index c27867f6c2..345a027c22 100644 --- a/examples/step-16/step-16.cc +++ b/examples/step-16/step-16.cc @@ -279,7 +279,7 @@ namespace Step16 constraints.clear (); DoFTools::make_hanging_node_constraints (dof_handler, constraints); - std::set dirichlet_boundary_ids; + std::set dirichlet_boundary_ids = { 0 }; Functions::ZeroFunction homogeneous_dirichlet_bc; const typename FunctionMap::type dirichlet_boundary_functions = { { types::boundary_id(0), &homogeneous_dirichlet_bc } };