IAP GITLAB

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

comments

parent 78a75e9e
No related branches found
No related tags found
2 merge requests!91Resolve "define further classes of processes (MaintenanceProcess?)",!76Resolve "Handling of boundary crossings in geometry tree"
Pipeline #435 passed
......@@ -230,14 +230,15 @@ namespace corsika::cascade {
auto const assertion = [&] {
auto const* numericalNodeAfterStep =
fEnvironment.GetUniverse()->GetContainingNode(particle.GetPosition());
fEnvironment.GetUniverse()->GetContainingNode(particle.GetPosition());
return numericalNodeAfterStep == currentLogicalNode;
};
assert(assertion()); // numerical and logical nodes don't match
} else { // boundary crossing
} else { // boundary crossing, step is limited by volume boundary
std::cout << "boundary crossing! next node = " << nextVol << std::endl;
particle.SetNode(nextVol);
// DoBoundary may delete the particle (or not)
fProcessSequence.DoBoundaryCrossing(particle, *currentLogicalNode, *nextVol);
}
}
......
......@@ -33,8 +33,8 @@ namespace corsika::stack {
<b>Important:</b> ParticleInterface must inherit from ParticleBase !
*/
template <typename> //, bool>
class ParticleInterface; // forward decl
template <typename>
class ParticleInterface;
/**
The Stack class provides (and connects) the main particle data storage machinery.
......@@ -98,8 +98,8 @@ namespace corsika::stack {
typedef StackDataType
StackImpl; ///< this is the type of the user-provided data structure
template <typename SI> //, bool IsBase>
using PIType = ParticleInterface<SI>; //, IsBase>;
template <typename SI>
using PIType = ParticleInterface<SI>;
/**
* Via the StackIteratorInterface and ConstStackIteratorInterface
......@@ -209,7 +209,6 @@ namespace corsika::stack {
}
if (p.GetIndex() < GetSize() - 1) fData.Copy(GetSize() - 1, p.GetIndex());
DeleteLast();
// p.SetInvalid();
}
/**
* delete this particle
......
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