Skip to content

Commit 39e42d7

Browse files
authored
Typo in defining PotentialNBodySystem
The `Dict` should be constructed like `Dict(:gravitational => g_parameters, :electrostatic => el_potential)` instead of `Dict(:gravitational => g_parameters, electrostatic: => el_potential)`
1 parent 350cc70 commit 39e42d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The Lennard-Jones potential is used in molecular dynamics simulations for approx
8181
`PotentialNBodySystem` structure represents systems with a custom set of potentials. In other words, the user determines the ways in which the particles are allowed to interact. One can pass the bodies and parameters of interaction potentials into that system. In the case the potential parameters are not set, the particles will move at constant velocities without acceleration during the simulation.
8282

8383
```julia
84-
system = PotentialNBodySystem(bodies, Dict(:gravitational => g_parameters, electrostatic: => el_potential))
84+
system = PotentialNBodySystem(bodies, Dict(:gravitational => g_parameters, :electrostatic => el_potential))
8585
```
8686

8787
### Custom Potential

0 commit comments

Comments
 (0)