From 1f60706989d51a00a33c626f59937bf001f0b8b6 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 19 Sep 2018 22:44:27 -0500 Subject: [PATCH] make apple-clang happy --- examples/step-7/step-7.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/step-7/step-7.cc b/examples/step-7/step-7.cc index 570892df25..0177ead3b0 100644 --- a/examples/step-7/step-7.cc +++ b/examples/step-7/step-7.cc @@ -122,14 +122,14 @@ namespace Step7 // it doesn't have to generate the variable from a template by substituting // dim, but can immediately use the following definition: template <> - const std::array, 3> SolutionBase<1>::source_centers = - {Point<1>(-1.0 / 3.0), Point<1>(0.0), Point<1>(+1.0 / 3.0)}; + const std::array, 3> SolutionBase<1>::source_centers = { + {Point<1>(-1.0 / 3.0), Point<1>(0.0), Point<1>(+1.0 / 3.0)}}; // Likewise, we can provide an explicit specialization for // dim=2. We place the centers for the 2d case as follows: template <> - const std::array, 3> SolutionBase<2>::source_centers = - {Point<2>(-0.5, +0.5), Point<2>(-0.5, -0.5), Point<2>(+0.5, -0.5)}; + const std::array, 3> SolutionBase<2>::source_centers = { + {Point<2>(-0.5, +0.5), Point<2>(-0.5, -0.5), Point<2>(+0.5, -0.5)}}; // There remains to assign a value to the half-width of the exponentials. We // would like to use the same value for all dimensions. In this case, we -- 2.39.5