mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Add a new attribute surf_src on class Surface for source banking
This commit is contained in:
parent
6aa1570c04
commit
b648142abb
2 changed files with 5 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ public:
|
|||
int id_; //!< Unique ID
|
||||
std::string name_; //!< User-defined name
|
||||
std::shared_ptr<BoundaryCondition> bc_ {nullptr}; //!< Boundary condition
|
||||
bool surf_src_ {false}; //!< Activate source banking for the surface?
|
||||
|
||||
explicit Surface(pugi::xml_node surf_node);
|
||||
Surface();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue