IAP GITLAB

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

fixed stack_example

parent 89c8a60f
No related branches found
No related tags found
No related merge requests found
...@@ -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"
......
...@@ -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
......
...@@ -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) {
......
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