mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
declarations of MCPL-internals
This commit is contained in:
parent
601d219c6d
commit
c43989af9c
1 changed files with 11 additions and 2 deletions
|
|
@ -109,11 +109,20 @@ public:
|
|||
MCPLFileSource(std::string path);
|
||||
~MCPLFileSource();
|
||||
|
||||
// Defer implementation to custom source library
|
||||
SourceSite sample(uint64_t* seed) const override
|
||||
// Properties
|
||||
ParticleType particle_type() const { return particle_; }
|
||||
|
||||
//! Sample from the external source distribution
|
||||
//! \param[inout] seed Pseudorandom seed pointer
|
||||
//! \return Site read from MCPL-file
|
||||
SourceSite sample(uint64_t* seed) const override;
|
||||
|
||||
private:
|
||||
ParticleType particle_ {ParticleType::neutron}; //!< Type of particle emitted
|
||||
vector <SourceSite> sites_; //!<source sites from an MCPL-file
|
||||
mcpl_file_t mcpl_file;
|
||||
|
||||
uint64_t read_particles;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue