From 3ccfa08a115c70833a0ec2a7f4d3995ba0d60372 Mon Sep 17 00:00:00 2001 From: Adam G Nelson Date: Sat, 9 Nov 2019 09:24:30 -0600 Subject: [PATCH] minor change to add an inline version of Mgxs::get_xs just like @gridley did for mg.get_*_xs --- include/openmc/mgxs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/openmc/mgxs.h b/include/openmc/mgxs.h index 313677f6cf..71e8c7ec93 100644 --- a/include/openmc/mgxs.h +++ b/include/openmc/mgxs.h @@ -143,6 +143,11 @@ class Mgxs { get_xs(int xstype, int gin, const int* gout, const double* mu, const int* dg); + inline double + get_xs(int xstype, int gin) + {return get_xs(xstype, gin, nullptr, nullptr, nullptr);} + + //! \brief Samples the fission neutron energy and if prompt or delayed. //! //! @param gin Incoming energy group.