Add the specified number of particles to the model.
(&mut self, particles: usize)
| 98 | |
| 99 | /// Add the specified number of particles to the model. |
| 100 | pub fn run(&mut self, particles: usize) { |
| 101 | tracing::debug!("Adding {particles} particles"); |
| 102 | for _ in 0..particles { |
| 103 | self.add_particle(); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | /// Add a single particle to the DLA model. |
| 108 | fn add_particle(&mut self) { |
no test coverage detected