mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Corrected style according to review
This commit is contained in:
parent
c6949e5e53
commit
7937e7670c
1 changed files with 6 additions and 6 deletions
|
|
@ -12,14 +12,14 @@ extern "C" openmc::Particle::Bank sample_source() {
|
|||
particle.wgt = 1.0;
|
||||
// position
|
||||
|
||||
double angle = 2.*M_PI*openmc::prn();
|
||||
double angle = 2. * M_PI * openmc::prn();
|
||||
double radius = 3.0;
|
||||
particle.r.x = radius*std::cos(angle);
|
||||
particle.r.y = radius*std::sin(angle);
|
||||
particle.r.z = 0.;
|
||||
particle.r.x = radius * std::cos(angle);
|
||||
particle.r.y = radius * std::sin(angle);
|
||||
particle.r.z = 0.0;
|
||||
// angle
|
||||
particle.u = {1.,0,0};
|
||||
particle.u = {1.0, 0.0, 0.0};
|
||||
particle.E = 14.08e6;
|
||||
particle.delayed_group = 0;
|
||||
return particle;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue