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
24b199cb
Commit
24b199cb
authored
4 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
fixed stack_example
parent
89c8a60f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+0
-35
0 additions, 35 deletions
.gitlab-ci.yml
examples/stack_example.cpp
+1
-1
1 addition, 1 deletion
examples/stack_example.cpp
tests/framework/testProcessSequence.cpp
+7
-12
7 additions, 12 deletions
tests/framework/testProcessSequence.cpp
with
8 additions
and
48 deletions
.gitlab-ci.yml
+
0
−
35
View file @
24b199cb
...
@@ -528,41 +528,6 @@ coverage:
...
@@ -528,41 +528,6 @@ coverage:
##########################################################
documentation
:
image
:
corsika/devel:u-18.04
dependencies
:
-
config-u-18_04
stage
:
optional
tags
:
-
corsika
script
:
-
cd build
-
cmake --build . --target doxygen -- -j4
-
mkdir -p .public
-
cp -r Documentation/Doxygen/html .public/
-
mv .public ../public
rules
:
-
if
:
'
$CI_MERGE_REQUEST_LABELS
=~
/Ready
for
code
review/'
# run on merge requests, if label 'Ready for code review' is set
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when
:
manual
allow_failure
:
true
-
if
:
$CI_MERGE_REQUEST_ID
when
:
manual
allow_failure
:
true
-
if
:
$CI_COMMIT_TAG
when
:
manual
allow_failure
:
true
artifacts
:
expire_in
:
3 weeks
paths
:
-
${CI_PROJECT_DIR}/public
cache
:
paths
:
-
${CI_PROJECT_DIR}/build/
untracked
:
true
policy
:
pull
key
:
"
${CI_COMMIT_REF_SLUG}-gcc"
...
...
This diff is collapsed.
Click to expand it.
examples/stack_example.cpp
+
1
−
1
View file @
24b199cb
...
@@ -37,7 +37,7 @@ void read(corsika::super_stupid::SuperStupidStack& s) {
...
@@ -37,7 +37,7 @@ void read(corsika::super_stupid::SuperStupidStack& s) {
assert
(
s
.
GetSize
()
==
11
);
// stack has 11 particles
assert
(
s
.
GetSize
()
==
11
);
// stack has 11 particles
HEPEnergyType
total_energy
;
HEPEnergyType
total_energy
;
int
i
=
0
;
[[
maybe_unused
]]
int
i
=
0
;
for
(
const
auto
&
p
:
s
)
{
for
(
const
auto
&
p
:
s
)
{
total_energy
+=
p
.
GetEnergy
();
total_energy
+=
p
.
GetEnergy
();
// particles are electrons with 1.5 GeV energy times i
// particles are electrons with 1.5 GeV energy times i
...
...
This diff is collapsed.
Click to expand it.
tests/framework/testProcessSequence.cpp
+
7
−
12
View file @
24b199cb
...
@@ -30,7 +30,7 @@ int checkSec = 0; // use this as a bit field
...
@@ -30,7 +30,7 @@ int checkSec = 0; // use this as a bit field
int
checkCont
=
0
;
// use this as a bit field
int
checkCont
=
0
;
// use this as a bit field
class
ContinuousProcess1
:
public
ContinuousProcess
<
ContinuousProcess1
>
{
class
ContinuousProcess1
:
public
ContinuousProcess
<
ContinuousProcess1
>
{
int
fV
=
0
;
[[
maybe_unused
]]
int
fV
=
0
;
public:
public:
ContinuousProcess1
(
const
int
v
)
ContinuousProcess1
(
const
int
v
)
...
@@ -50,7 +50,7 @@ public:
...
@@ -50,7 +50,7 @@ public:
};
};
class
ContinuousProcess2
:
public
ContinuousProcess
<
ContinuousProcess2
>
{
class
ContinuousProcess2
:
public
ContinuousProcess
<
ContinuousProcess2
>
{
int
fV
=
0
;
[[
maybe_unused
]]
int
fV
=
0
;
public:
public:
ContinuousProcess2
(
const
int
v
)
ContinuousProcess2
(
const
int
v
)
...
@@ -101,18 +101,12 @@ public:
...
@@ -101,18 +101,12 @@ public:
for
(
int
i
=
0
;
i
<
nData
;
++
i
)
v
.
parent
().
data_
[
i
]
+=
1
+
i
;
for
(
int
i
=
0
;
i
<
nData
;
++
i
)
v
.
parent
().
data_
[
i
]
+=
1
+
i
;
return
EProcessReturn
::
eOk
;
return
EProcessReturn
::
eOk
;
}
}
template
<
typename
TParticle
>
corsika
::
units
::
si
::
GrammageType
GetInteractionLength
(
TParticle
&
)
const
{
return
10
_g
/
square
(
1
_cm
);
}
private
:
private
:
int
fV
;
[[
maybe_unused
]]
int
fV
;
};
};
class
Process2
:
public
InteractionProcess
<
Process2
>
{
class
Process2
:
public
InteractionProcess
<
Process2
>
{
int
fV
=
0
;
[[
maybe_unused
]]
int
fV
=
0
;
public:
public:
Process2
(
const
int
v
)
Process2
(
const
int
v
)
...
@@ -136,7 +130,7 @@ public:
...
@@ -136,7 +130,7 @@ public:
};
};
class
Process3
:
public
InteractionProcess
<
Process3
>
{
class
Process3
:
public
InteractionProcess
<
Process3
>
{
int
fV
=
0
;
[[
maybe_unused
]]
int
fV
=
0
;
public:
public:
Process3
(
const
int
v
)
Process3
(
const
int
v
)
...
@@ -160,7 +154,7 @@ public:
...
@@ -160,7 +154,7 @@ public:
};
};
class
Process4
:
public
BaseProcess
<
Process4
>
{
class
Process4
:
public
BaseProcess
<
Process4
>
{
int
fV
=
0
;
[[
maybe_unused
]]
int
fV
=
0
;
public:
public:
Process4
(
const
int
v
)
Process4
(
const
int
v
)
...
@@ -184,6 +178,7 @@ public:
...
@@ -184,6 +178,7 @@ public:
};
};
class
Decay1
:
public
DecayProcess
<
Decay1
>
{
class
Decay1
:
public
DecayProcess
<
Decay1
>
{
[[
maybe_unused
]]
int
fV
=
0
;
public:
public:
Decay1
(
const
int
)
{
Decay1
(
const
int
)
{
...
...
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