IAP GITLAB
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
corsika
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
123
Issues
123
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Air Shower Physics
corsika
Commits
c4b8af2e
Commit
c4b8af2e
authored
Feb 19, 2021
by
Ralf Ulrich
☄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed wrong logic in BetheBlochPDG
parent
f3270a8c
Pipeline
#3535
passed with stages
in 37 minutes and 42 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
corsika/detail/modules/energy_loss/BetheBlochPDG.inl
corsika/detail/modules/energy_loss/BetheBlochPDG.inl
+3
-1
examples/vertical_EAS.cpp
examples/vertical_EAS.cpp
+4
-2
No files found.
corsika/detail/modules/energy_loss/BetheBlochPDG.inl
View file @
c4b8af2e
...
...
@@ -141,14 +141,16 @@ namespace corsika {
inline ProcessReturn BetheBlochPDG::doContinuous(setup::Stack::particle_type& p,
setup::Trajectory const& t,
bool const
limitStep
) {
bool const) {
// if this step was limiting the CORSIKA stepping, the particle is lost
/* see Issue https://gitlab.ikp.kit.edu/AirShowerPhysics/corsika/-/issues/389
if (limitStep) {
fillProfile(t, p.getEnergy());
p.setEnergy(p.getMass());
return ProcessReturn::ParticleAbsorbed;
}
*/
if (p.getChargeNumber() == 0) return ProcessReturn::Ok;
...
...
examples/vertical_EAS.cpp
View file @
c4b8af2e
...
...
@@ -101,8 +101,10 @@ int main(int argc, char** argv) {
CORSIKA_LOG_INFO
(
"vertical_EAS"
);
if
(
argc
<
4
)
{
std
::
cerr
<<
"usage: vertical_EAS <A> <Z> <energy/GeV> [seed]"
<<
std
::
endl
;
std
::
cerr
<<
" if no seed is given, a random seed is chosen"
<<
std
::
endl
;
std
::
cerr
<<
"usage: vertical_EAS <A> <Z> <energy/GeV> [seed]
\n
"
" if A=0, Z is interpreted as PDG code
\n
"
" if no seed is given, a random seed is chosen
\n
"
<<
std
::
endl
;
return
1
;
}
feenableexcept
(
FE_INVALID
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment