mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Returning universe index from the original dagmc function now.
This commit is contained in:
parent
be5318fdb0
commit
ef21ec493b
2 changed files with 4 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ namespace model {
|
|||
//==============================================================================
|
||||
|
||||
void load_dagmc_geometry();
|
||||
void create_dagmc_universe(const std::string& filename);
|
||||
int32_t create_dagmc_universe(const std::string& filename);
|
||||
void read_geometry_dagmc();
|
||||
bool read_uwuw_materials(pugi::xml_document& doc);
|
||||
bool get_uwuw_materials_xml(std::string& s);
|
||||
|
|
|
|||
|
|
@ -151,10 +151,10 @@ void legacy_assign_material(std::string mat_string, DAGCell* c)
|
|||
|
||||
void load_dagmc_geometry()
|
||||
{
|
||||
create_dagmc_universe(dagmc_file());
|
||||
int32_t univ_idx = create_dagmc_universe(dagmc_file());
|
||||
}
|
||||
|
||||
void create_dagmc_universe(const std::string& filename) {
|
||||
int32_t create_dagmc_universe(const std::string& filename) {
|
||||
if (!model::DAG) {
|
||||
model::DAG = std::make_shared<moab::DagMC>();
|
||||
}
|
||||
|
|
@ -338,7 +338,7 @@ void create_dagmc_universe(const std::string& filename) {
|
|||
model::surface_map[s->id_] = i;
|
||||
}
|
||||
|
||||
return;
|
||||
return model::universes.size() - 1;
|
||||
}
|
||||
|
||||
void read_geometry_dagmc()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue