mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Fix particle type
This commit is contained in:
parent
9a861db193
commit
64e617ed09
1 changed files with 1 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ void sample_photon_reaction(Particle* p)
|
|||
// Create Compton electron
|
||||
double phi = 2.0*PI*prn();
|
||||
double E_electron = (alpha - alpha_out)*MASS_ELECTRON_EV - e_b;
|
||||
int electron = static_cast<int>(ParticleType::electron);
|
||||
int electron = static_cast<int>(Particle::Type::electron);
|
||||
if (E_electron >= settings::energy_cutoff[electron]) {
|
||||
double mu_electron = (alpha - alpha_out*mu)
|
||||
/ std::sqrt(alpha*alpha + alpha_out*alpha_out - 2.0*alpha*alpha_out*mu);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue