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
daed8dab
Commit
daed8dab
authored
3 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
exclude few lines for clang unit tests
parent
d5bbc5c3
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
corsika/detail/modules/epos/Interaction.inl
+3
-2
3 additions, 2 deletions
corsika/detail/modules/epos/Interaction.inl
tests/modules/testEpos.cpp
+4
-1
4 additions, 1 deletion
tests/modules/testEpos.cpp
with
7 additions
and
3 deletions
corsika/detail/modules/epos/Interaction.inl
+
3
−
2
View file @
daed8dab
...
@@ -88,8 +88,9 @@ namespace corsika::epos {
...
@@ -88,8 +88,9 @@ namespace corsika::epos {
int
iarg
=
0
;
int
iarg
=
0
;
::
epos
::
aaset_
(
iarg
);
::
epos
::
aaset_
(
iarg
);
::
epos
::
prnt1_
.
ish
=
0
;
// debug level in epos
// debug output settings
::
epos
::
files_
.
ifch
=
6
;
// output unit
::
epos
::
prnt1_
.
ish
=
0
;
// debug level in epos, 0: off, 6: medium output
::
epos
::
files_
.
ifch
=
6
;
// output unit, 6: screen
// dummy set seeds for random number generator in epos. need to fool epos checks...
// dummy set seeds for random number generator in epos. need to fool epos checks...
// we will use external generator
// we will use external generator
...
...
This diff is collapsed.
Click to expand it.
tests/modules/testEpos.cpp
+
4
−
1
View file @
daed8dab
...
@@ -245,6 +245,9 @@ TEST_CASE("EposInterface", "modules") {
...
@@ -245,6 +245,9 @@ TEST_CASE("EposInterface", "modules") {
auto
particle
=
stack
->
first
();
auto
particle
=
stack
->
first
();
Interaction
model
;
Interaction
model
;
#ifndef __clang__
// This is very obscure since it fails for -O2
model
.
doInteraction
(
view
);
model
.
doInteraction
(
view
);
auto
const
pSum
=
sumMomentum
(
view
,
cs
);
auto
const
pSum
=
sumMomentum
(
view
,
cs
);
...
@@ -256,7 +259,7 @@ TEST_CASE("EposInterface", "modules") {
...
@@ -256,7 +259,7 @@ TEST_CASE("EposInterface", "modules") {
CHECK
((
pSum
-
plab
).
getNorm
()
/
1
_GeV
==
CHECK
((
pSum
-
plab
).
getNorm
()
/
1
_GeV
==
Approx
(
0
).
margin
(
plab
.
getNorm
()
*
0.05
/
1
_GeV
));
Approx
(
0
).
margin
(
plab
.
getNorm
()
*
0.05
/
1
_GeV
));
CHECK
(
pSum
.
getNorm
()
/
P0
==
Approx
(
1
).
margin
(
0.05
));
CHECK
(
pSum
.
getNorm
()
/
P0
==
Approx
(
1
).
margin
(
0.05
));
#endif
[[
maybe_unused
]]
const
GrammageType
length
=
model
.
getInteractionLength
(
particle
);
[[
maybe_unused
]]
const
GrammageType
length
=
model
.
getInteractionLength
(
particle
);
CHECK
(
length
/
1
_g
*
1
_cm
*
1
_cm
==
CHECK
(
length
/
1
_g
*
1
_cm
*
1
_cm
==
Approx
(
30
).
margin
(
20
));
// this is no physics validation
Approx
(
30
).
margin
(
20
));
// this is no physics validation
...
...
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