mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Make Source::sample() method const
This commit is contained in:
parent
b271399f63
commit
9af5541e88
7 changed files with 12 additions and 12 deletions
|
|
@ -6,7 +6,7 @@ class CustomSource : public openmc::Source {
|
|||
CustomSource(double energy) : energy_(energy) { }
|
||||
|
||||
// Samples from an instance of this class.
|
||||
openmc::Particle::Bank sample(uint64_t* seed)
|
||||
openmc::Particle::Bank sample(uint64_t* seed) const
|
||||
{
|
||||
openmc::Particle::Bank particle;
|
||||
// wgt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue