Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 45c3ec8f authored by albajacas_a's avatar albajacas_a
Browse files

Remove unnecessary definitions of energy in AWAGun-TrackBack-1 test.

parent 37ccd73f
No related branches found
No related tags found
1 merge request!35Resolve "Fix tests that use default `P0` and `FROMFILE`"
...@@ -15,13 +15,10 @@ REAL n_particles = 1E4; //Number of particles in simulation. ...@@ -15,13 +15,10 @@ REAL n_particles = 1E4; //Number of particles in simulation.
REAL beam_bunch_charge = 1e-9; //Charge of bunch. (C) REAL beam_bunch_charge = 1e-9; //Charge of bunch. (C)
//Initial Momentum Calculation //Initial Momentum Calculation
REAL Edes = 1.4e-9; //initial energy in GeV REAL P0 = 13.234 * EMASS; // Inital z-momentum in the distribution file (GeV/c).
REAL gamma = (Edes+EMASS)/EMASS;
REAL beta = sqrt(1-(1/gamma^2));
REAL P0 = 13.234 * EMASS; // Inital z-momentum in the distribution file (GeV/c).
//Printing initial energy and momentum to terminal output. //Printing initial energy and momentum to terminal output.
value , {Edes, P0, OPALVERSION}; value , {P0, OPALVERSION};
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// RF photoinjector (Gun) // RF photoinjector (Gun)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment