From 1c8ccb3a5c3bf4a4bef10e9a3564264e13ff4def Mon Sep 17 00:00:00 2001 From: cianciosa Date: Mon, 9 Mar 2026 15:06:25 -0400 Subject: [PATCH] Fix code error in documents no functionality change. --- graph_docs/kernel_optimization.dox | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/graph_docs/kernel_optimization.dox b/graph_docs/kernel_optimization.dox index 971619a..6d1f616 100644 --- a/graph_docs/kernel_optimization.dox +++ b/graph_docs/kernel_optimization.dox @@ -23,7 +23,7 @@ void field_solve_example() { const size_t num_grid = 1000; auto grid_value = graph::variable (num_grid, "g"); auto particle_index = graph::variable (num_grid, "i"); - auto gird_position = graph::variable (num_grid, "gx"); + auto grid_position = graph::variable (num_grid, "gx"); std::vector buffer(1000, static_cast (0.0)); grid_value->set(buffer); @@ -33,14 +33,14 @@ void field_solve_example() { buffer[index] = static_cast (2*index)/static_cast (999) - static_cast (1); } - gx->set(buffer); + flow_control->set(buffer); auto indexed_particle = graph::index_1D(particle_positions, particle_index, static_cast (1), static_cast (0)); auto next_index = particle_index + static_cast (1.0); - auto arg = indexed_particle - gird_position; + auto arg = indexed_particle - grid_position; auto next_grid_value = grid_value + graph::exp(static_cast (-1)*arg*arg/static_cast (10)); @@ -52,7 +52,7 @@ void field_solve_example() { static_cast (1), static_cast (0)); next_index = next_index + static_cast (1.0); - arg = indexed_particle - gird_position; + arg = indexed_particle - grid_position; next_grid_value = next_grid_value + graph::exp(static_cast (-1)*arg*arg/static_cast (10)); } @@ -78,7 +78,7 @@ void field_solve_example() { graph::variable_cast(particle_positions), graph::variable_cast(indexed_particle), graph::variable_cast(grid_value), - graph::variable_cast(gird_position) + graph::variable_cast(grid_position) }, {}, { {next_index, graph::variable_cast(indexed_particle)}, {next_grid_value, graph::variable_cast(grid_value)} -- GitLab