mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Setting index values in cell and surface dictionaries
This commit is contained in:
parent
2a1d449709
commit
c02f8c0b48
1 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ void load_cad_geometry_c()
|
|||
c.dagmc_ptr = DAGMC;
|
||||
c.universe = 0; // set to zero for now
|
||||
openmc::cells_c.push_back(c);
|
||||
openmc::cell_dict[c.id] = i;
|
||||
}
|
||||
|
||||
// initialize surface objects
|
||||
|
|
@ -38,6 +39,7 @@ void load_cad_geometry_c()
|
|||
s->id = DAGMC->id_by_index(2, i);
|
||||
s->dagmc_ptr = DAGMC;
|
||||
openmc::surfaces_c[i] = s;
|
||||
openmc::surface_dict[s->id] = i;
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue