@@ -332,7 +332,7 @@ This is the easiest method, but cannot be parallelized efficiently (i.e., with a
The idea here is to traverse the internal structure of the tree. We start to browse the groups of leaves, then for each group the leaves and finally for each leaf the particles. In this approach, we don't know a priori the storage of the different objects.
#+begin_src c++
// loop on the group of the tree
for(auto const pg: tree.group_of_leaves())
for(auto const pg: tree.vector_of_leaf_groups())
{
// Loop on the leaf of thz group
for(auto const& leaf: pg->components())
...
...
@@ -352,7 +352,7 @@ This method is slightly more efficient than the classical method and can be para
We will use our knowledge of particle storage to be more efficient. In the tree version with views, the particles of a group of leaves are stored continuously in the tree. Moreover, we need to know the type of the particles to get the right pointers (this can be automated) to the different components of the particles (position, inputs, outputs, variables).