diff --git a/include/openmc/surface.h b/include/openmc/surface.h index 1e16c4919b..febfed27cc 100644 --- a/include/openmc/surface.h +++ b/include/openmc/surface.h @@ -88,6 +88,7 @@ public: int id_; //!< Unique ID std::string name_; //!< User-defined name std::shared_ptr bc_ {nullptr}; //!< Boundary condition + bool surf_src_ {false}; //!< Activate source banking for the surface? explicit Surface(pugi::xml_node surf_node); Surface(); diff --git a/src/surface.cpp b/src/surface.cpp index e0f2787b6e..1e1307eff9 100644 --- a/src/surface.cpp +++ b/src/surface.cpp @@ -143,6 +143,10 @@ Surface::Surface(pugi::xml_node surf_node) } } + if (check_for_node(surf_node, "surf_src")) { + surf_src_ = get_node_value_bool(surf_node, "surf_src"); + } + } bool