Returning universe index from the original dagmc function now.

This commit is contained in:
Patrick Shriwise 2020-07-08 21:32:56 -05:00
parent be5318fdb0
commit ef21ec493b
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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()