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:
davidjohnlong 2020-03-12 12:10:55 +00:00
parent eac442f31c
commit 086568b562
2 changed files with 25 additions and 20 deletions

View file

@ -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