mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Fix all the bugs introduced
This commit is contained in:
parent
0439eb0fa1
commit
e1e4941d8c
13 changed files with 52 additions and 30 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue