Remove global_ prefix from global geometry vectors

This commit is contained in:
Sterling Harper 2018-08-27 19:06:01 -04:00
parent 260bf843e8
commit 0e348e338b
12 changed files with 162 additions and 162 deletions

View file

@ -9,25 +9,25 @@ namespace openmc {
extern "C" void
write_geometry(hid_t file_id) {
auto geom_group = create_group(file_id, "geometry");
write_attribute(geom_group, "n_cells", global_cells.size());
write_attribute(geom_group, "n_surfaces", global_surfaces.size());
write_attribute(geom_group, "n_universes", global_universes.size());
write_attribute(geom_group, "n_lattices", lattices_c.size());
write_attribute(geom_group, "n_cells", cells.size());
write_attribute(geom_group, "n_surfaces", surfaces.size());
write_attribute(geom_group, "n_universes", universes.size());
write_attribute(geom_group, "n_lattices", lattices.size());
auto cells_group = create_group(geom_group, "cells");
for (Cell* c : global_cells) c->to_hdf5(cells_group);
for (Cell* c : cells) c->to_hdf5(cells_group);
close_group(cells_group);
auto surfaces_group = create_group(geom_group, "surfaces");
for (Surface* surf : global_surfaces) surf->to_hdf5(surfaces_group);
for (Surface* surf : surfaces) surf->to_hdf5(surfaces_group);
close_group(surfaces_group);
auto universes_group = create_group(geom_group, "universes");
for (Universe* u : global_universes) u->to_hdf5(universes_group);
for (Universe* u : universes) u->to_hdf5(universes_group);
close_group(universes_group);
auto lattices_group = create_group(geom_group, "lattices");
for (Lattice* lat : lattices_c) lat->to_hdf5(lattices_group);
for (Lattice* lat : lattices) lat->to_hdf5(lattices_group);
close_group(lattices_group);
close_group(geom_group);