Skip to content

Commit

Permalink
doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Apr 1, 2022
1 parent 7fdfe9e commit 93f6483
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions docs/src/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ function iterate_lists(nsteps, water, protein)
# Perform whatever futher analysis using the `list` of minimum distances.
end
end

# This function is the driver fro the above example:
function run(nsteps)
system = MolecularMinimumDistances.download_example()
water = coor(system, "water") # water coordinates
protein = coor(system, "protein") # protein coordinates
iterate_lists(nsteps, water, protein)
end
```

Running the above example shows that allocations are small for each iteration:
Expand Down Expand Up @@ -141,7 +133,7 @@ function iterate_lists_serial(nsteps, water, protein)
end
```

We can see that the updating of the cell lists and the computation of the minimum-distance lists are completely allocation free, such that the loop is allocation free:
We can see that the updating of the cell lists and the computation of the minimum-distance lists is completely allocation free, such that the loop is allocation free:

```
julia> @btime iterate_lists_serial(10, $water, $protein)
Expand Down

0 comments on commit 93f6483

Please sign in to comment.