From 8502cb01e85e5ba934116a38f0d54457587a06f8 Mon Sep 17 00:00:00 2001 From: Gavin Ridley Date: Tue, 3 Mar 2020 09:36:42 -0500 Subject: [PATCH 1/2] add accessor of xsdata to mgxs --- include/openmc/mgxs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/openmc/mgxs.h b/include/openmc/mgxs.h index e178bf5b14..e5221825b7 100644 --- a/include/openmc/mgxs.h +++ b/include/openmc/mgxs.h @@ -185,6 +185,10 @@ class Mgxs { //! @param u Incoming particle direction. void set_angle_index(Direction u); + + //! \brief Provide const access to list of XsData held by this + std::vector const& + get_xsdata() const { return xs; } }; } // namespace openmc From 4838c4b4dd87c627b2c0c55a4cc1c4e92d64193e Mon Sep 17 00:00:00 2001 From: Gavin Ridley Date: Tue, 3 Mar 2020 13:10:08 -0500 Subject: [PATCH 2/2] formatting fix Co-Authored-By: Paul Romano --- include/openmc/mgxs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/openmc/mgxs.h b/include/openmc/mgxs.h index e5221825b7..f9c4722e94 100644 --- a/include/openmc/mgxs.h +++ b/include/openmc/mgxs.h @@ -187,8 +187,7 @@ class Mgxs { set_angle_index(Direction u); //! \brief Provide const access to list of XsData held by this - std::vector const& - get_xsdata() const { return xs; } + const std::vector& get_xsdata() const { return xs; } }; } // namespace openmc