IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 8656c3b5 authored by ralfulrich's avatar ralfulrich
Browse files

indendation

parent 800858e8
No related branches found
No related tags found
No related merge requests found
......@@ -263,10 +263,10 @@ namespace corsika::cascade {
InverseTimeType inv_decay_count = 0 / second;
fProcessSequence.SelectDecay(vParticle, projectile, sample_process,
inv_decay_count);
// make sure particle actually did decay if it should have done so
if (secondaries.GetSize() == 1 &&
projectile.GetPID() == secondaries.GetNextParticle().GetPID())
throw std::runtime_error("Cascade::Step: Particle decays into itself!");
// make sure particle actually did decay if it should have done so
if (secondaries.GetSize() == 1 &&
projectile.GetPID() == secondaries.GetNextParticle().GetPID())
throw std::runtime_error("Cascade::Step: Particle decays into itself!");
}
fProcessSequence.DoSecondaries(secondaries);
......@@ -277,7 +277,7 @@ namespace corsika::cascade {
// be "protected" and not accessible to physics
} else { // step-length limitation within volume
std::cout << "step-length limitation" << std::endl;
fProcessSequence.DoSecondaries(secondaries);
}
......
......@@ -57,7 +57,7 @@ namespace corsika::process {
};
} // namespace sibyll
} // namespace corsika::process
#endif
......@@ -163,14 +163,13 @@ TEST_CASE("SibyllInterface", "[processes]") {
auto projectile = view.GetProjectile();
Decay model;
model.Init();
/*[[maybe_unused]] const process::EProcessReturn ret =*/model.DoDecay(projectile);
// run checks
[[maybe_unused]] const TimeType time = model.GetLifetime(particle);
}
SECTION("DecayConfiguration") {
Decay model;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment