Skip to content

Commit

Permalink
Improved some comments, fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-m-h committed Nov 27, 2023
1 parent 4eeaa13 commit 8a9c803
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/heat_equation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

//! [X-dimension]
/// Our first continuous dimension
struct X;
struct X;
//! [X-dimension]

//! [X-discretization]
Expand Down Expand Up @@ -45,8 +45,8 @@ using DDimT = ddc::UniformPointSampling<T>;
template <class ChunkType>
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(),
Expand Down Expand Up @@ -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<DDimT> index_time_last_output = time_domain.front();
ddc::DiscreteElement<DDimT> index_time_last_output
= time_domain.front();
//! [initial output]

//! [time iteration]
Expand Down

0 comments on commit 8a9c803

Please sign in to comment.