Commit 7f6f2d6c authored by kraus's avatar kraus

cast to EnvelopeBunch otherwise crashes on merlin

parent 1c087b04
......@@ -234,9 +234,8 @@ void H5PartWrapperForPS::writeStep(PartBunch& bunch, const std::map<std::string,
void H5PartWrapperForPS::writeStepHeader(PartBunch& bunch,
const std::map<std::string, double> &additionalStepAttributes) {
bunch.calcBeamParameters();
EnvelopeBunch *ebunch = static_cast<EnvelopeBunch*>(&bunch);
ebunch->calcBeamParameters();
double actPos = ebunch->get_sPos();
double t = ebunch->getT();
......@@ -531,4 +530,4 @@ void H5PartWrapperForPS::dumpStashedPhaseSpaceEnvelope() {
WRITEDATA(Float64, file_m, "pz", f64buffer);
//rc = H5Fflush, file_m->file, rc = H5F_SCOPE_GLOBAL);
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment