Skip to content

Commit

Permalink
Merge commit '4419dc20cdf08d64e1d6aa43b54aca9ef2b4504f' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmatthews committed Aug 19, 2015
2 parents cba0e58 + 4419dc2 commit bdade4c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions source/get_atomicdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,15 @@ for the ionstate.
ion[config[m].nion].phot_info = 1; /* Mark this ion as using TOPBASE photo */
ion[config[m].nion].ntop_first = ntop_phot;
}

/* JM 1508 -- next line sees if the topbase level just read in is the ground state -
if it is, the ion structure element ntop_ground is set to that topbase level number
note that m is the lower level here */
if (m == config[ion[config[n].nion].first_nlte_level].ilv)
{
ion[config[n].nion].ntop_ground = ntop_phot;
}

ion[config[m].nion].ntop++;

// Finish up this section by storing the photionization data properly
Expand Down Expand Up @@ -1591,8 +1600,10 @@ for the ionstate.
nphot_total++;
}

else if (ion[nion].phot_info == 1) /*We already have a topbase cross section, but the VFKY
data is superior for the ground state, so we replace that data with the current data*/
else if (ion[nion].phot_info == 1 && ion[nion].macro_info != 1)
/* We already have a topbase cross section, but the VFKY
data is superior for the ground state, so we replace that data with the current data*/
/* JM 1508 -- don't do this with macro-atoms for the moment */
{
phot_top[ion[nion].ntop_ground].nlev = ion[nion].firstlevel; // ground state
phot_top[ion[nion].ntop_ground].nion = nion;
Expand Down

0 comments on commit bdade4c

Please sign in to comment.