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 847012b commit 3d2987c
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 @@ -1442,13 +1442,14 @@ void setup_phixs_list() {

// different targets share the same cross section table, so don't repeat this process
if (phixstargetindex == 0) {
auto *sourcetable = tmpallphixs.data() + globals::elements[element].ions[ion].levels[level].phixsstart;
auto *blocktablestart = globals::allphixs + (nbftableschanged * globals::NPHIXSPOINTS);
if (globals::rank_in_node == 0) {
memcpy(blocktablestart, tmpallphixs.data() + globals::elements[element].ions[ion].levels[level].phixsstart,
globals::NPHIXSPOINTS * sizeof(float));
memcpy(blocktablestart, sourcetable, globals::NPHIXSPOINTS * sizeof(float));
}

globals::elements[element].ions[ion].levels[level].photoion_xs = blocktablestart;
globals::elements[element].ions[ion].levels[level].phixsstart = nbftableschanged * globals::NPHIXSPOINTS;

nbftableschanged++;
}
Expand Down

0 comments on commit 3d2987c

Please sign in to comment.