From c02f8c0b486c8c3ffc887d2a601b2f881c1900a1 Mon Sep 17 00:00:00 2001 From: shriwise Date: Sun, 25 Feb 2018 08:25:49 -0600 Subject: [PATCH] Setting index values in cell and surface dictionaries --- src/cad.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cad.cpp b/src/cad.cpp index ff22f235f0..970046041e 100644 --- a/src/cad.cpp +++ b/src/cad.cpp @@ -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;