mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Use unique_ptr consistently for global vectors
This commit is contained in:
parent
4877ffcccd
commit
38e39c4486
18 changed files with 78 additions and 95 deletions
|
|
@ -102,19 +102,19 @@ void write_geometry(hid_t file)
|
|||
write_attribute(geom_group, "n_lattices", model::lattices.size());
|
||||
|
||||
auto cells_group = create_group(geom_group, "cells");
|
||||
for (Cell* c : model::cells) c->to_hdf5(cells_group);
|
||||
for (const auto& c : model::cells) c->to_hdf5(cells_group);
|
||||
close_group(cells_group);
|
||||
|
||||
auto surfaces_group = create_group(geom_group, "surfaces");
|
||||
for (Surface* surf : model::surfaces) surf->to_hdf5(surfaces_group);
|
||||
for (const auto& surf : model::surfaces) surf->to_hdf5(surfaces_group);
|
||||
close_group(surfaces_group);
|
||||
|
||||
auto universes_group = create_group(geom_group, "universes");
|
||||
for (Universe* u : model::universes) u->to_hdf5(universes_group);
|
||||
for (const auto& u : model::universes) u->to_hdf5(universes_group);
|
||||
close_group(universes_group);
|
||||
|
||||
auto lattices_group = create_group(geom_group, "lattices");
|
||||
for (Lattice* lat : model::lattices) lat->to_hdf5(lattices_group);
|
||||
for (const auto& lat : model::lattices) lat->to_hdf5(lattices_group);
|
||||
close_group(lattices_group);
|
||||
|
||||
close_group(geom_group);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue