changed order of fields in QueueItem struct.

This commit is contained in:
John Tramm 2020-01-21 20:38:53 +00:00
parent 972fb54f82
commit 2142ae9895

View file

@ -25,9 +25,9 @@ namespace openmc {
// consistent locality improvements.
struct QueueItem{
int64_t idx; //!< particle index in event-based particle buffer
double E; //!< particle energy
int64_t material; //!< material that particle is in
Particle::Type type; //!< particle type
int64_t material; //!< material that particle is in
double E; //!< particle energy
// Comparator sorts by particle type, then by material type, then by energy
bool operator<(const QueueItem& rhs) const