Skip to content

Commit

Permalink
Minor changes to avoid GNU compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
temken committed Mar 27, 2023
1 parent 58ecc4a commit 076c395
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Direct_Detection_Ionization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ double DM_Detector_Ionization::Minimum_DM_Speed(DM_Particle& DM) const
double DM_Detector_Ionization::dRdE(double E, const DM_Particle& DM, DM_Distribution& DM_distr)
{
double dRdE = 0.0;
for(auto i = 0; i < atomic_targets.size(); i++)
for(unsigned int i = 0; i < atomic_targets.size(); i++)
dRdE += relative_mass_fractions[i] * dRdE_Ionization(E, DM, DM_distr, atomic_targets[i]);
return dRdE;
}
Expand All @@ -167,7 +167,7 @@ double DM_Detector_Ionization::DM_Signals_Total(const DM_Particle& DM, DM_Distri
for(unsigned int ne = ne_threshold; ne <= ne_max; ne++)
N += exposure * R_ne(ne, DM, DM_distr);
else if(using_energy_threshold)
for(auto i = 0; i < atomic_targets.size(); i++)
for(unsigned int i = 0; i < atomic_targets.size(); i++)
for(auto& electron : atomic_targets[i].electrons)
{
double kMax = electron.k_max;
Expand Down Expand Up @@ -259,7 +259,7 @@ double DM_Detector_Ionization::R_ne(unsigned int ne, const DM_Particle& DM, DM_D
double DM_Detector_Ionization::R_ne(unsigned int ne, const DM_Particle& DM, DM_Distribution& DM_distr)
{
double R = 0.0;
for(auto i = 0; i < atomic_targets.size(); i++)
for(unsigned int i = 0; i < atomic_targets.size(); i++)

R += relative_mass_fractions[i] * R_ne(ne, DM, DM_distr, atomic_targets[i]);
return R;
Expand Down Expand Up @@ -390,7 +390,7 @@ void DM_Detector_Ionization::Print_Summary(int MPI_rank) const
std::cout << std::endl
<< "\tElectron recoil experiment (ionization)." << std::endl
<< "\tTarget(s):\t\t\t" << std::endl;
for(auto i = 0; i < atomic_targets.size(); i++)
for(unsigned int i = 0; i < atomic_targets.size(); i++)
std::cout << "\t\t\t" << atomic_targets[i].nucleus.name << "\t(" << libphysica::Round(100.0 * relative_mass_fractions[i]) << "%)" << std::endl;
std::cout << "\tElectron bins:\t\t" << (using_electron_bins ? "[x]" : "[ ]") << std::endl
<< "\tPE (S2) bins:\t\t" << (using_S2_bins ? "[x]" : "[ ]") << std::endl;
Expand Down

0 comments on commit 076c395

Please sign in to comment.