summaryrefslogtreecommitdiff
path: root/src/main/Bunch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/Bunch.cc')
-rw-r--r--src/main/Bunch.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/Bunch.cc b/src/main/Bunch.cc
index e32de97..4a4844b 100644
--- a/src/main/Bunch.cc
+++ b/src/main/Bunch.cc
@@ -27,7 +27,6 @@ Bunch::~Bunch() {
void Bunch::initializeParticles() {
create(getLength());
-
}
void Bunch::create(double dt) {
@@ -83,7 +82,7 @@ void Bunch::create(double dt) {
particle->setCharge(getReferenceParticle().getCharge() * getLambda());
particle->translate(dp);
- particles.push_back(particle);
+ add(particle);
}
}