IAP GITLAB

Skip to content
Snippets Groups Projects
Commit f641acf1 authored by Nikos Karastathis's avatar Nikos Karastathis :ocean:
Browse files

minor fixes to examples

parent 9918d6be
No related branches found
No related tags found
1 merge request!329Radio interface
......@@ -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_};
......
......@@ -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 -2008702799)
CORSIKA_REGISTER_EXAMPLE (radio_em_shower RUN_OPTIONS 10 1121673489)
......@@ -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 excatly ONCE per linked
number generator. It has to occur exactly ONCE per linked
executable. If you include the header below multiple times and
link this togehter, it will fail.
link this together, it will fail.
*/
#include <corsika/modules/Random.hpp>
......
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