From 066bcb6052f3985a9cc5c36c808693eeb3083be3 Mon Sep 17 00:00:00 2001 From: John Tramm Date: Mon, 2 Dec 2019 17:42:06 +0000 Subject: [PATCH] formatting --- src/simulation.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/simulation.cpp b/src/simulation.cpp index 17c66660a..179d7ea95 100644 --- a/src/simulation.cpp +++ b/src/simulation.cpp @@ -157,10 +157,12 @@ void dispatch_xs_event(int i) void process_calculate_xs_events(QueueItem * queue, int n) { - // Sort queue by energy - std::sort(queue, queue+n, by_energy); - // Then, stable sort by material (so as to preserve energy ordering) - std::stable_sort(queue, queue+n, by_material); + // Sort queue by energy + std::sort(queue, queue+n, by_energy); + + // Then, stable sort by material (so as to preserve energy ordering) + std::stable_sort(queue, queue+n, by_material); + // Save last_ members, find grid index int lost_particles = 0; #pragma omp parallel for reduction(+:lost_particles)