From: Peter Munch Date: Mon, 9 Mar 2020 06:37:09 +0000 (+0100) Subject: Step-69: fix warnings X-Git-Tag: v9.2.0-rc1~436^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9641%2Fhead;p=dealii.git Step-69: fix warnings --- diff --git a/examples/step-69/step-69.cc b/examples/step-69/step-69.cc index fca2a20386..836e27c8eb 100644 --- a/examples/step-69/step-69.cc +++ b/examples/step-69/step-69.cc @@ -1547,10 +1547,10 @@ namespace Step69 // conserved quantities. The return array consists of density $\rho$, // velocity $u$, pressure $p$ and local speed of sound $a$: - return {projected_U[0], - projected_U[1] / projected_U[0], - ProblemDescription<1>::pressure(projected_U), - ProblemDescription<1>::speed_of_sound(projected_U)}; + return {{projected_U[0], + projected_U[1] / projected_U[0], + ProblemDescription<1>::pressure(projected_U), + ProblemDescription<1>::speed_of_sound(projected_U)}}; } // At this point we also define two small functions that return the @@ -1704,22 +1704,16 @@ namespace Step69 // naming the corresponding components: template <> - const std::array ProblemDescription<1>::component_names{"rho", - "m", - "E"}; + const std::array ProblemDescription<1>::component_names{ + {"rho", "m", "E"}}; template <> - const std::array ProblemDescription<2>::component_names{"rho", - "m_1", - "m_2", - "E"}; + const std::array ProblemDescription<2>::component_names{ + {"rho", "m_1", "m_2", "E"}}; template <> - const std::array ProblemDescription<3>::component_names{"rho", - "m_1", - "m_2", - "m_3", - "E"}; + const std::array ProblemDescription<3>::component_names{ + {"rho", "m_1", "m_2", "m_3", "E"}}; // @sect4{Initial values}