IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
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
Model registry
Operate
Environments
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
Air Shower Physics
corsika
Commits
f641acf1
Commit
f641acf1
authored
2 years ago
by
Nikos Karastathis
Browse files
Options
Downloads
Patches
Plain Diff
minor fixes to examples
parent
9918d6be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!329
Radio interface
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
corsika/detail/modules/radio/CoREAS.inl
+4
-7
4 additions, 7 deletions
corsika/detail/modules/radio/CoREAS.inl
examples/CMakeLists.txt
+4
-4
4 additions, 4 deletions
examples/CMakeLists.txt
examples/radio_em_shower.cpp
+2
-2
2 additions, 2 deletions
examples/radio_em_shower.cpp
with
10 additions
and
13 deletions
corsika/detail/modules/radio/CoREAS.inl
+
4
−
7
View file @
f641acf1
...
...
@@ -82,7 +82,7 @@ namespace corsika {
// because of numerical limitations here you might need std::fabs(preDoppler)
// in the if statement - same with post & mid
if
(
preDoppler_
==
0
)
{
CORSIKA_LOG_
INFO
(
"preDoppler factor numerically zero in COREAS"
);
CORSIKA_LOG_
WARN
(
"preDoppler factor numerically zero in COREAS"
);
// redo calculation with higher precision
auto
const
&
beta_components_
{
beta_
.
getComponents
(
cs_
)};
auto
const
&
emit_components_
{
paths1
[
i
].
emit_
.
getComponents
(
cs_
)};
...
...
@@ -106,7 +106,7 @@ namespace corsika {
// check if postDoppler has become zero in case of refractive index of unity
// because of numerical limitations
if
(
postDoppler_
==
0
)
{
CORSIKA_LOG_
INFO
(
"postDoppler factor numerically zero in CoREAS"
);
CORSIKA_LOG_
WARN
(
"postDoppler factor numerically zero in CoREAS"
);
// redo calculation with higher precision
auto
const
&
beta_components_
{
beta_
.
getComponents
(
cs_
)};
auto
const
&
emit_components_
{
paths2
[
i
].
emit_
.
getComponents
(
cs_
)};
...
...
@@ -143,7 +143,7 @@ namespace corsika {
((
std
::
fabs
(
preDoppler_
)
<
approxThreshold_
)
||
(
std
::
fabs
(
postDoppler_
)
<
approxThreshold_
)))
{
CORSIKA_LOG_INFO
(
"used ZHS-like approximation in CoREAS"
);
//
CORSIKA_LOG_INFO("used ZHS-like approximation in CoREAS");
zhscounter_
+=
1
;
// CORSIKA_LOG_INFO("Used ZHS approx: {} out of {} times", zhscounter_, trackcounter_);
...
...
@@ -172,7 +172,7 @@ namespace corsika {
// check if midDoppler has become zero because of numerical limitations
if
(
midDoppler_
==
0
)
{
CORSIKA_LOG_
INFO
(
"midDoppler factor numerically zero in COREAS"
);
CORSIKA_LOG_
WARN
(
"midDoppler factor numerically zero in COREAS"
);
// redo calculation with higher precision
auto
const
&
beta_components_
{
beta_
.
getComponents
(
cs_
)};
auto
const
&
emit_components_
{
path
.
emit_
.
getComponents
(
cs_
)};
...
...
@@ -317,9 +317,6 @@ namespace corsika {
if
((
preDoppler_
<
1.e-9
)
||
(
postDoppler_
<
1.e-9
))
{
// CORSIKA_LOG_ERROR("Doppler factors are less than 1.e-9
// for this track");
TimeType
const
gridResolution_
{
1
/
antenna
.
getSampleRate
()};
TimeType
deltaT_
{
endPointReceiveTime_
-
startPointReceiveTime_
};
...
...
This diff is collapsed.
Click to expand it.
examples/CMakeLists.txt
+
4
−
4
View file @
f641acf1
...
...
@@ -72,16 +72,16 @@ add_executable (environment environment.cpp)
target_link_libraries
(
environment CORSIKA8::CORSIKA8
)
add_executable
(
synchrotron_test_manual_tracking synchrotron_test_manual_tracking.cpp
)
target_link_libraries
(
synchrotron_test_manual_tracking CORSIKA8::CORSIKA8
)
CORSIKA_REGISTER_EXAMPLE
(
synchrotron_test_manual_tracking
RUN_OPTIONS 4 2 10000.
)
CORSIKA_REGISTER_EXAMPLE
(
synchrotron_test_manual_tracking
)
add_executable
(
synchrotron_test_C8tracking synchrotron_test_C8tracking.cpp
)
target_link_libraries
(
synchrotron_test_C8tracking CORSIKA8::CORSIKA8
)
CORSIKA_REGISTER_EXAMPLE
(
synchrotron_test_C8tracking
RUN_OPTIONS 4 2 10000.
)
CORSIKA_REGISTER_EXAMPLE
(
synchrotron_test_C8tracking
)
add_executable
(
clover_leaf clover_leaf.cpp
)
target_link_libraries
(
clover_leaf CORSIKA8::CORSIKA8
)
CORSIKA_REGISTER_EXAMPLE
(
clover_leaf
RUN_OPTIONS 4 2 10000.
)
CORSIKA_REGISTER_EXAMPLE
(
clover_leaf
)
add_executable
(
radio_em_shower radio_em_shower.cpp
)
target_link_libraries
(
radio_em_shower CORSIKA8::CORSIKA8
)
CORSIKA_REGISTER_EXAMPLE
(
radio_em_shower RUN_OPTIONS 10
-200870279
9
)
CORSIKA_REGISTER_EXAMPLE
(
radio_em_shower RUN_OPTIONS 10
112167348
9
)
This diff is collapsed.
Click to expand it.
examples/radio_em_shower.cpp
+
2
−
2
View file @
f641acf1
...
...
@@ -66,9 +66,9 @@
NOTE, WARNING, ATTENTION
The .../Random.hpppp implement the hooks of external modules to the C8 random
number generator. It has to occur ex
c
atly ONCE per linked
number generator. It has to occur exa
c
tly ONCE per linked
executable. If you include the header below multiple times and
link this toge
h
ter, it will fail.
link this toget
h
er, it will fail.
*/
#include
<corsika/modules/Random.hpp>
...
...
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