IAP GITLAB
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Air Shower Physics
corsika
Commits
3f5d08c6
Commit
3f5d08c6
authored
Dec 02, 2022
by
Maximilian Reininghaus
🖖
Browse files
fix dangling reference in testRadio
parent
6cd70b66
Pipeline
#9418
failed with stages
in 60 minutes and 10 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tests/modules/testRadio.cpp
View file @
3f5d08c6
...
...
@@ -536,18 +536,18 @@ TEST_CASE("Propagators") {
env
.
getUniverse
()
->
addChild
(
std
::
move
(
Medium
));
// get some points
Point
p0
(
rootCS
,
{
0
_m
,
0
_m
,
0
_m
});
Point
p10
(
rootCS
,
{
0
_m
,
0
_m
,
10
_m
});
Point
const
p0
(
rootCS
,
{
0
_m
,
0
_m
,
0
_m
});
Point
const
p10
(
rootCS
,
{
0
_m
,
0
_m
,
10
_m
});
// get a unit vector
Vector
<
dimensionless_d
>
v1
(
rootCS
,
{
0
,
0
,
1
});
Vector
<
dimensionless_d
>
v2
(
rootCS
,
{
0
,
0
,
-
1
});
Vector
<
dimensionless_d
>
const
v1
(
rootCS
,
{
0
,
0
,
1
});
Vector
<
dimensionless_d
>
const
v2
(
rootCS
,
{
0
,
0
,
-
1
});
// get a geometrical path of points
Path
P1
({
p0
,
p10
});
Path
const
P1
({
p0
,
p10
});
// construct a Straight Propagator given the uniform refractive index environment
SimplePropagator
SP
(
env
);
SimplePropagator
const
SP
(
env
);
// store the outcome of the Propagate method to paths_
auto
const
paths_
=
SP
.
propagate
(
p0
,
p10
,
1
_m
);
...
...
@@ -563,8 +563,10 @@ TEST_CASE("Propagators") {
CHECK
(
path
.
emit_
.
getComponents
()
==
v1
.
getComponents
());
CHECK
(
path
.
receive_
.
getComponents
()
==
v2
.
getComponents
());
CHECK
(
path
.
R_distance_
==
10
_m
);
CHECK
(
std
::
equal
(
P1
.
begin
(),
P1
.
end
(),
Path
(
path
.
points_
).
begin
(),
[](
Point
a
,
Point
b
)
{
return
(
a
-
b
).
getNorm
()
/
1
_m
<
1e-5
;
}));
Path
const
path2
(
path
.
points_
);
CHECK
(
std
::
equal
(
P1
.
begin
(),
P1
.
end
(),
path2
.
begin
(),
[](
Point
const
&
a
,
Point
const
&
b
)
{
return
(
a
-
b
).
getNorm
()
/
1
_m
<
1e-5
;
}));
}
}
// END: SECTION("Simple Propagator w/ Uniform Refractive Index")
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment