From 04fa573dc69bb5fbc7750d2de226ca1410510b03 Mon Sep 17 00:00:00 2001 From: Thomas Padioleau Date: Tue, 24 Dec 2024 13:24:52 +0100 Subject: [PATCH] Revert back to curly bracket ctor for std::vector --- examples/non_uniform_heat_equation.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/non_uniform_heat_equation.cpp b/examples/non_uniform_heat_equation.cpp index c166974e3..de271fd66 100644 --- a/examples/non_uniform_heat_equation.cpp +++ b/examples/non_uniform_heat_equation.cpp @@ -163,13 +163,13 @@ int main(int argc, char** argv) std::size_t const size_x = x_domain_vect.size(); //! [ghost_points_x] - std::vector const x_pre_ghost_vect( + std::vector const x_pre_ghost_vect { x_domain_vect.front() - - (x_domain_vect.back() - x_domain_vect[size_x - 2])); + - (x_domain_vect.back() - x_domain_vect[size_x - 2])}; - std::vector const x_post_ghost_vect( + std::vector const x_post_ghost_vect { x_domain_vect.back() - + (x_domain_vect[1] - x_domain_vect.front())); + + (x_domain_vect[1] - x_domain_vect.front())}; //! [ghost_points_x] //! [build-domains] @@ -193,12 +193,12 @@ int main(int argc, char** argv) std::size_t const size_y = y_domain_vect.size(); //! [ghost_points_y] - std::vector const y_pre_ghost_vect( + std::vector const y_pre_ghost_vect { y_domain_vect.front() - - (y_domain_vect.back() - y_domain_vect[size_y - 2])); - std::vector const y_post_ghost_vect( + - (y_domain_vect.back() - y_domain_vect[size_y - 2])}; + std::vector const y_post_ghost_vect { y_domain_vect.back() - + (y_domain_vect[1] - y_domain_vect.front())); + + (y_domain_vect[1] - y_domain_vect.front())}; //! [ghost_points_y] //! [Y-vectors]