Skip to content

Commit

Permalink
Update input.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Aug 30, 2024
1 parent 738c817 commit a0a915b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions input.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,11 @@ void read_phixs_data_table(std::fstream &phixsfile, const int nphixspoints_input
}

*mem_usage_phixs += globals::NPHIXSPOINTS * sizeof(float);
globals::elements[element].ions[lowerion].levels[lowerlevel].phixsstart = -tmpallphixs.size() - 1;
const auto tmpphixsstart = tmpallphixs.size();
globals::elements[element].ions[lowerion].levels[lowerlevel].phixsstart = -tmpphixsstart - 1;
tmpallphixs.resize(tmpallphixs.size() + globals::NPHIXSPOINTS);

auto *levelphixstable = tmpallphixs.data() + globals::elements[element].ions[lowerion].levels[lowerlevel].phixsstart;
auto *levelphixstable = &tmpallphixs[tmpphixsstart];
if (phixs_file_version == 1) {
assert_always(get_nphixstargets(element, lowerion, lowerlevel) == 1);
assert_always(get_phixsupperlevel(element, lowerion, lowerlevel, 0) == 0);
Expand Down

0 comments on commit a0a915b

Please sign in to comment.