mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 14:35:27 -04:00
remove all occurrences of Particle::{Bank,Type}
This commit is contained in:
parent
0ffe7a5d2a
commit
a215e39182
3 changed files with 12 additions and 12 deletions
|
|
@ -31,11 +31,11 @@ class RingSource : public openmc::Source {
|
|||
}
|
||||
|
||||
// Samples from an instance of this class.
|
||||
openmc::Particle::Bank sample(uint64_t* seed) const
|
||||
openmc::SourceSite sample(uint64_t* seed) const
|
||||
{
|
||||
openmc::Particle::Bank particle;
|
||||
openmc::SourceSite particle;
|
||||
// wgt
|
||||
particle.particle = openmc::Particle::Type::neutron;
|
||||
particle.particle = openmc::ParticleType::neutron;
|
||||
particle.wgt = 1.0;
|
||||
// position
|
||||
double angle = 2.0 * M_PI * openmc::prn(seed);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue