From 0d1af5b46ff1940bc197d308559a0faa3e071e4c Mon Sep 17 00:00:00 2001 From: Ce Qin Date: Sun, 20 May 2018 22:43:31 +0800 Subject: [PATCH] Fix step-16. --- doc/news/changes/minor/20180521CeQin | 2 ++ examples/step-16/step-16.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 doc/news/changes/minor/20180521CeQin 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 } }; -- 2.39.5