Skip to content

Commit

Permalink
In volume calculation mode, only load atomic weight ratio from data f…
Browse files Browse the repository at this point in the history
…iles (openmc-dev#2741)
  • Loading branch information
paulromano authored and church89 committed Jul 18, 2024
1 parent dda5643 commit 3c25342
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nuclide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ Nuclide::Nuclide(hid_t group, const vector<double>& temperature)
read_attribute(group, "metastable", metastable_);
read_attribute(group, "atomic_weight_ratio", awr_);

if (settings::run_mode == RunMode::VOLUME) {
return;
}

// Determine temperatures available
hid_t kT_group = open_group(group, "kTs");
auto dset_names = dataset_names(kT_group);
Expand Down

0 comments on commit 3c25342

Please sign in to comment.