Fix all the bugs introduced

This commit is contained in:
Paul Romano 2019-02-21 14:45:59 -06:00
parent 0439eb0fa1
commit e1e4941d8c
13 changed files with 52 additions and 30 deletions

View file

@ -202,6 +202,12 @@ void read_mg_cross_sections_header()
ensure_exists(file_id, "energy_groups", true);
read_attribute(file_id, "energy_groups", data::num_energy_groups);
if (attribute_exists(file_id, "delayed_groups")) {
read_attribute(file_id, "delayed_groups", data::num_delayed_groups);
} else {
data::num_delayed_groups = 0;
}
ensure_exists(file_id, "group structure", true);
read_attribute(file_id, "group structure", data::rev_energy_bins);