From 2142ae9895fcc4fe887c4df324e2d37350ce2cf2 Mon Sep 17 00:00:00 2001 From: John Tramm Date: Tue, 21 Jan 2020 20:38:53 +0000 Subject: [PATCH] changed order of fields in QueueItem struct. --- include/openmc/event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/openmc/event.h b/include/openmc/event.h index eeb657ec0..90ff8c3fc 100644 --- a/include/openmc/event.h +++ b/include/openmc/event.h @@ -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