From 8a9c8036b6ebcb37826197d7717bb70e73954905 Mon Sep 17 00:00:00 2001 From: alex-m-h Date: Mon, 27 Nov 2023 13:50:26 +0100 Subject: [PATCH] Improved some comments, fixed formatting --- examples/heat_equation.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/heat_equation.cpp b/examples/heat_equation.cpp index 65359978c..06bd4ff95 100644 --- a/examples/heat_equation.cpp +++ b/examples/heat_equation.cpp @@ -12,7 +12,7 @@ //! [X-dimension] /// Our first continuous dimension -struct X; +struct X; //! [X-dimension] //! [X-discretization] @@ -45,8 +45,8 @@ using DDimT = ddc::UniformPointSampling; template void display(double time, ChunkType temp) { - // For a chunk the ()-operator is used to access elements with a DiscreteElement as - // input. So it is used here as a function that maps indices of the temperature domain + // For a chunk, the ()-operator is used to access elements with a DiscreteElement as + // input. So it is used here as a function that maps indices of the temperature domain // to the temperature value at that point double const mean_temp = ddc::transform_reduce( temp.domain(), @@ -251,7 +251,8 @@ int main(int argc, char** argv) display(ddc::coordinate(time_domain.front()), ghosted_temp[x_domain][y_domain]); // time of the iteration where the last output happened - ddc::DiscreteElement index_time_last_output = time_domain.front(); + ddc::DiscreteElement index_time_last_output + = time_domain.front(); //! [initial output] //! [time iteration]