mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Add new DAGUniverse constructor from external DAGMC
This commit is contained in:
parent
d3b4cb7fd3
commit
05577e6a2e
2 changed files with 13 additions and 0 deletions
|
|
@ -88,6 +88,11 @@ public:
|
|||
explicit DAGUniverse(const std::string& filename, bool auto_geom_ids = false,
|
||||
bool auto_mat_ids = false);
|
||||
|
||||
//! Alternative DAGMC universe constructor for external DAGMC
|
||||
explicit DAGUniverse(std::shared_ptr<moab::DagMC> external_dagmc_ptr,
|
||||
bool auto_geom_ids = false,
|
||||
bool auto_mat_ids = false);
|
||||
|
||||
//! Initialize the DAGMC accel. data structures, indices, material
|
||||
//! assignments, etc.
|
||||
void initialize();
|
||||
|
|
|
|||
|
|
@ -76,6 +76,14 @@ DAGUniverse::DAGUniverse(
|
|||
initialize();
|
||||
}
|
||||
|
||||
DAGUniverse::DAGUniverse(std::shared_ptr<moab::DagMC> external_dagmc_ptr,
|
||||
bool auto_geom_ids, bool auto_mat_ids)
|
||||
: dagmc_instance_(external_dagmc_ptr), filename_(""),
|
||||
adjust_geometry_ids_(auto_geom_ids), adjust_material_ids_(auto_mat_ids)
|
||||
{
|
||||
set_id();
|
||||
}
|
||||
|
||||
void DAGUniverse::set_id()
|
||||
{
|
||||
// determine the next universe id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue