Fixed recombination On/Off mechanism

This commit is contained in:
Christian
2019-11-10 11:10:13 +01:00
parent bebf663ffa
commit fa70354391
2 changed files with 24 additions and 3 deletions
+4
View File
@@ -88,6 +88,10 @@ inline double Sub_Interaction_Base::get_macroSigma_m_kinetic(const Particle &int
double macro_Sigma_m2 = 0;
for (int E_bin = 0; E_bin< bounds.num_E_bins; E_bin++) {
cont = Population->get_density_m3(E_bin, bounds.loc_bins);
if (cont.n_m3 != 0) {
std::cout<<cont.n_m3<<"\n";
}
macro_Sigma_m2 += get_microSigma_m2(cont.E_eV, loc_m) * cont.n_m3;
}
return macro_Sigma_m2;