mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Converted fission_bank to unique_ptr rather than regular pointer. Also added some comments to explain usage of unique_ptr as opposed to vector type.
This commit is contained in:
parent
03397cab26
commit
714d0b266e
7 changed files with 29 additions and 14 deletions
|
|
@ -17,7 +17,7 @@ namespace simulation {
|
|||
|
||||
extern std::vector<Particle::Bank> source_bank;
|
||||
|
||||
extern Particle::Bank* fission_bank;
|
||||
extern std::unique_ptr<Particle::Bank[]> fission_bank;
|
||||
extern int64_t fission_bank_length;
|
||||
extern int64_t fission_bank_max;
|
||||
extern std::vector<int64_t> progeny_per_particle;
|
||||
|
|
|
|||
|
|
@ -172,7 +172,6 @@ public:
|
|||
Type particle;
|
||||
int64_t parent_id;
|
||||
int64_t progeny_id;
|
||||
bool operator<(const Bank& bank) const { return (parent_id < bank.parent_id); }
|
||||
};
|
||||
|
||||
//! Saved ("banked") state of a particle, for nu-fission tallying
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue