From d7917b08e59797e639ebad1c2c59b0a8bb746052 Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Sat, 19 Jun 2021 10:56:16 +0200 Subject: [PATCH] fix verbosity flag --- examples/corsika.cpp | 6 +++--- examples/mars.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/corsika.cpp b/examples/corsika.cpp index 09e024287..275ca88e2 100644 --- a/examples/corsika.cpp +++ b/examples/corsika.cpp @@ -148,8 +148,8 @@ int main(int argc, char** argv) { ->group("Misc."); app.add_flag("--force-interaction", "Force the location of the first interaction.") ->group("Misc."); - app.add_option("-v,--verbosity", "Verbosity level: warn, info, debug, trace.") - ->default_val("info") + app.add_option("-v,--verbosity", "Verbosity level") + ->default_str("info") ->check(CLI::IsMember({"warn", "info", "debug", "trace"})) ->group("Misc."); @@ -157,7 +157,7 @@ int main(int argc, char** argv) { CLI11_PARSE(app, argc, argv); string const loglevel = - (app.count("--verbosity") ? app["verbosity"]->as<string>() : "info"); + (app.count("--verbosity") ? app["--verbosity"]->as<string>() : "info"); if (loglevel == "warn") { logging::set_level(logging::level::warn); } else if (loglevel == "info") { diff --git a/examples/mars.cpp b/examples/mars.cpp index 73ca6fbf9..92ed62ad9 100644 --- a/examples/mars.cpp +++ b/examples/mars.cpp @@ -347,7 +347,7 @@ int main(int argc, char** argv) { corsika::proposal::ContinuousProcess emContinuous(env); InteractionCounter emCascadeCounted(emCascade); - LongitudinalProfile longprof{showerAxis}; + LongitudinalProfile longprof{showerAxis, 1_g / square(1_cm)}; corsika::urqmd::UrQMD urqmd; InteractionCounter urqmdCounted{urqmd}; -- GitLab