IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
corsika
Commits
a1ffb1ff
Commit
a1ffb1ff
authored
5 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
comments
parent
78a75e9e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!91
Resolve "define further classes of processes (MaintenanceProcess?)"
,
!76
Resolve "Handling of boundary crossings in geometry tree"
Pipeline
#435
passed
5 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Framework/Cascade/Cascade.h
+3
-2
3 additions, 2 deletions
Framework/Cascade/Cascade.h
Framework/StackInterface/Stack.h
+4
-5
4 additions, 5 deletions
Framework/StackInterface/Stack.h
with
7 additions
and
7 deletions
Framework/Cascade/Cascade.h
+
3
−
2
View file @
a1ffb1ff
...
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Framework/StackInterface/Stack.h
+
4
−
5
View file @
a1ffb1ff
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment