Commit 2b374d82 authored by snuverink_j's avatar snuverink_j

for #213: broadcast message to all nodes

parent fe28913b
......@@ -775,9 +775,10 @@ void RFCavity::getMomentaKick(const double normalRadius, double momentum[], cons
momentum[1] = -sin(rotate) * px + cos(rotate) * py;
if(PID == 0) {
*gmsg << "* Cavity " << getName() << " Phase= " << tempdegree << " [deg] transit time factor= " << Ufactor
<< " dE= " << dgam *restMass * 1.0e-6 << " [MeV]"
<< " E_kin= " << (gamma - 1.0)*restMass * 1.0e-6 << " [MeV] Time dep freq = " << frequency_td_m->getValue(t) << endl;
Inform m("OPAL",Ippl::myNode());
m << "* Cavity " << getName() << " Phase= " << tempdegree << " [deg] transit time factor= " << Ufactor
<< " dE= " << dgam *restMass * 1.0e-6 << " [MeV]"
<< " E_kin= " << (gamma - 1.0)*restMass * 1.0e-6 << " [MeV] Time dep freq = " << frequency_td_m->getValue(t) << endl;
}
frequency_m = frequency_save;
}
......
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