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
d7917b08
Commit
d7917b08
authored
3 years ago
by
ralfulrich
Committed by
Ralf Ulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix verbosity flag
parent
a995ef0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/corsika.cpp
+3
-3
3 additions, 3 deletions
examples/corsika.cpp
examples/mars.cpp
+1
-1
1 addition, 1 deletion
examples/mars.cpp
with
4 additions
and
4 deletions
examples/corsika.cpp
+
3
−
3
View file @
d7917b08
...
...
@@ -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"
)
{
...
...
This diff is collapsed.
Click to expand it.
examples/mars.cpp
+
1
−
1
View file @
d7917b08
...
...
@@ -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
};
...
...
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