Skip to content

Commit

Permalink
Merge branch 'develop' into xcom_photoion
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles authored Mar 25, 2024
2 parents 2fee165 + f5055ba commit 28f44e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ratecoeff.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ auto integrator(auto params, double a, double b, double epsabs, double epsrel, i
double *abserr) {
if constexpr (USE_SIMPSON_INTEGRATOR) {
// need an odd number for Simpson rule
const int samplecount = std::max(1, static_cast<int>((b / a) / globals::NPHIXSNUINCREMENT)) * 32 + 1;
const int samplecount = std::max(1, static_cast<int>((b / a) / globals::NPHIXSNUINCREMENT)) * 4 + 1;

*result = simpson_integrator<func_integrand>(params, a, b, samplecount);
*abserr = 0.;
Expand Down
5 changes: 1 addition & 4 deletions vpkt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,9 @@ static void rlc_emiss_vpkt(const Packet &pkt, const double t_current, const int
const auto n_l = calculate_levelpop(mgi, element, ion, lower);
const double tau_line = (B_lu * n_l - B_ul * n_u) * HCLIGHTOVERFOURPI * t_line;

// Check on the element to exclude
// NB: ldist before need to be computed anyway (I want to move the packets to the
// line interaction point even if I don't interact)
// Check on the element to exclude (or -1 for no line opacity)
const int anumber = get_atomicnumber(element);
for (int ind = 0; ind < Nspectra; ind++) {
// If exclude[ind]==-1, I do not include line opacity
if (exclude[ind] != -1 && (exclude[ind] != anumber)) {
tau_vpkt[ind] += tau_line;
}
Expand Down

0 comments on commit 28f44e6

Please sign in to comment.