IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Pranav Sampathkumar
corsika
Commits
91e47b3f
Commit
91e47b3f
authored
4 years ago
by
ralfulrich
Committed by
Maximilian Sackel
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
renamed proposal_example to em_shower and remove comment
parent
e14b9192
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Documentation/Examples/CMakeLists.txt
+2
-2
2 additions, 2 deletions
Documentation/Examples/CMakeLists.txt
Documentation/Examples/em_shower.cc
+2
-2
2 additions, 2 deletions
Documentation/Examples/em_shower.cc
with
4 additions
and
4 deletions
Documentation/Examples/CMakeLists.txt
+
2
−
2
View file @
91e47b3f
...
@@ -131,8 +131,8 @@ target_link_libraries (staticsequence_example
...
@@ -131,8 +131,8 @@ target_link_libraries (staticsequence_example
CORSIKAlogging
)
CORSIKAlogging
)
CORSIKA_ADD_EXAMPLE
(
proposal_example
RUN_OPTIONS 100.
)
CORSIKA_ADD_EXAMPLE
(
em_shower
RUN_OPTIONS 100.
)
target_link_libraries
(
proposal_example
target_link_libraries
(
em_shower
SuperStupidStack
SuperStupidStack
CORSIKAunits
CORSIKAunits
CORSIKAlogging
CORSIKAlogging
...
...
This diff is collapsed.
Click to expand it.
Documentation/Examples/
proposal_example
.cc
→
Documentation/Examples/
em_shower
.cc
+
2
−
2
View file @
91e47b3f
...
@@ -50,13 +50,12 @@ using namespace corsika::units::si;
...
@@ -50,13 +50,12 @@ using namespace corsika::units::si;
void
registerRandomStreams
()
{
void
registerRandomStreams
()
{
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"cascade"
);
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"cascade"
);
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"proposal"
);
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"proposal"
);
// add PROPOSAL here (?)
random
::
RNGManager
::
GetInstance
().
SeedAll
();
random
::
RNGManager
::
GetInstance
().
SeedAll
();
}
}
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
if
(
argc
!=
2
)
{
if
(
argc
!=
2
)
{
std
::
cerr
<<
"usage:
proposal_example
<energy/GeV>"
<<
std
::
endl
;
std
::
cerr
<<
"usage:
em_shower
<energy/GeV>"
<<
std
::
endl
;
return
1
;
return
1
;
}
}
feenableexcept
(
FE_INVALID
);
feenableexcept
(
FE_INVALID
);
...
@@ -138,6 +137,7 @@ int main(int argc, char** argv) {
...
@@ -138,6 +137,7 @@ int main(int argc, char** argv) {
process
::
proposal
::
Interaction
proposal
(
env
,
cut
);
process
::
proposal
::
Interaction
proposal
(
env
,
cut
);
process
::
proposal
::
ContinuousProcess
em_continuous
(
env
,
cut
);
process
::
proposal
::
ContinuousProcess
em_continuous
(
env
,
cut
);
process
::
interaction_counter
::
InteractionCounter
proposalCounted
(
proposal
);
process
::
interaction_counter
::
InteractionCounter
proposalCounted
(
proposal
);
process
::
track_writer
::
TrackWriter
trackWriter
(
"tracks.dat"
);
process
::
track_writer
::
TrackWriter
trackWriter
(
"tracks.dat"
);
// long. profile; columns for gamma, e+, e- still need to be added
// long. profile; columns for gamma, e+, e- still need to be added
...
...
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