mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Remove primary_source_ structure from particle class and sample directly from source distribution in Particle::write_restart() function for fixed source simulations. Eigenvalue simulations reverted back to indexing from primary source bank
This commit is contained in:
parent
eac442f31c
commit
086568b562
2 changed files with 25 additions and 20 deletions
|
|
@ -181,15 +181,6 @@ public:
|
|||
int delayed_group; //!< particle delayed group
|
||||
};
|
||||
|
||||
//! Saved ("banked") state of primary source particle, for particle restart
|
||||
struct RestartBank {
|
||||
Position r;
|
||||
Direction u;
|
||||
double E;
|
||||
double wgt;
|
||||
};
|
||||
|
||||
|
||||
//==========================================================================
|
||||
// Constructors
|
||||
|
||||
|
|
@ -371,7 +362,6 @@ public:
|
|||
|
||||
int64_t n_progeny_ {0}; // Number of progeny produced by this particle
|
||||
|
||||
RestartBank primary_source_; // primary source particle data
|
||||
};
|
||||
|
||||
} // namespace openmc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue