Removed Warning, for no Interaction for Particle Species, since Testcases trigger all the time. Prob rework, so only warn once.
This commit is contained in:
@@ -30,12 +30,12 @@ InteractionOut ParticleInteractions::do_Interaction(Particle *interPart) const {
|
|||||||
|
|
||||||
double ParticleInteractions::get_macroSigma_m2(const Particle &interPart) const {
|
double ParticleInteractions::get_macroSigma_m2(const Particle &interPart) const {
|
||||||
double macroSigma_m2 = 0;
|
double macroSigma_m2 = 0;
|
||||||
if (empty()) {
|
if (!empty()) {
|
||||||
cout<<"Warning: No Interaction for Particle of Type "<<get_Species()<<"\n";
|
|
||||||
} else {
|
|
||||||
for (InteractionsVec::const_iterator Itr = Interactions.begin();Itr!=Interactions.end();Itr++) {
|
for (InteractionsVec::const_iterator Itr = Interactions.begin();Itr!=Interactions.end();Itr++) {
|
||||||
macroSigma_m2 += (*Itr)->get_macroSigma_m2(interPart);
|
macroSigma_m2 += (*Itr)->get_macroSigma_m2(interPart);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
//cout<<"Warning: No Interaction for Particle of Type "<<get_Species()<<"\n";
|
||||||
}
|
}
|
||||||
return(macroSigma_m2);
|
return(macroSigma_m2);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user