From 19c9f3464cd7d9afa953b0fb03939d1b33d9fd41 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Wed, 26 Feb 2020 16:23:53 -0600 Subject: [PATCH] Reordering data members s.t. they match initialization. --- include/openmc/mgxs.h | 2 +- include/openmc/tallies/tally_scoring.h | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/include/openmc/mgxs.h b/include/openmc/mgxs.h index 8d8ca4d8e6..e178bf5b14 100644 --- a/include/openmc/mgxs.h +++ b/include/openmc/mgxs.h @@ -40,8 +40,8 @@ class Mgxs { xt::xtensor kTs; // temperature in eV (k * T) AngleDistributionType scatter_format; // flag for if this is legendre, histogram, or tabular - int num_delayed_groups; // number of delayed neutron groups int num_groups; // number of energy groups + int num_delayed_groups; // number of delayed neutron groups std::vector xs; // Cross section data // MGXS Incoming Flux Angular grid information bool is_isotropic; // used to skip search for angle indices if isotropic diff --git a/include/openmc/tallies/tally_scoring.h b/include/openmc/tallies/tally_scoring.h index 224a9ef149..0a76025dbe 100644 --- a/include/openmc/tallies/tally_scoring.h +++ b/include/openmc/tallies/tally_scoring.h @@ -39,15 +39,18 @@ public: FilterBinIter& operator++(); - int index_ {1}; - double weight_ {1.}; - - std::vector& filter_matches_; - private: void compute_index_weight(); + // Data members const Tally& tally_; + +public: + + int index_ {1}; + double weight_ {1.}; + + std::vector& filter_matches_; }; //==============================================================================