]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make apple-clang happy 6781/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 20 Sep 2018 03:44:27 +0000 (22:44 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 20 Sep 2018 03:44:27 +0000 (22:44 -0500)
examples/step-7/step-7.cc

index 570892df2575487a84e0deaffc39665541746217..0177ead3b09f9fe6d6df2ce1a85a07f4e6a06503 100644 (file)
@@ -122,14 +122,14 @@ namespace Step7
   // it doesn't have to generate the variable from a template by substituting
   // <code>dim</code>, but can immediately use the following definition:
   template <>
-  const std::array<Point<1>, 3> SolutionBase<1>::source_centers =
-    {Point<1>(-1.0 / 3.0), Point<1>(0.0), Point<1>(+1.0 / 3.0)};
+  const std::array<Point<1>, 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
   // <code>dim=2</code>. We place the centers for the 2d case as follows:
   template <>
-  const std::array<Point<2>, 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<Point<2>, 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

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.