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
ab227f5d
Commit
ab227f5d
authored
2 years ago
by
Maximilian Reininghaus
Committed by
Maximilian Reininghaus
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
change return type of get_nucleus_name() to std::string
parent
cde78354
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!470
Wrong configuration of electromagnetic models in examples
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/framework/core/ParticleProperties.inl
+1
-1
1 addition, 1 deletion
corsika/detail/framework/core/ParticleProperties.inl
corsika/framework/core/ParticleProperties.hpp
+1
-1
1 addition, 1 deletion
corsika/framework/core/ParticleProperties.hpp
with
2 additions
and
2 deletions
corsika/detail/framework/core/ParticleProperties.inl
+
1
−
1
View file @
ab227f5d
...
@@ -147,7 +147,7 @@ namespace corsika {
...
@@ -147,7 +147,7 @@ namespace corsika {
return
get_mass
(
Code
::
Proton
)
*
Z
+
(
A
-
Z
)
*
get_mass
(
Code
::
Neutron
);
return
get_mass
(
Code
::
Proton
)
*
Z
+
(
A
-
Z
)
*
get_mass
(
Code
::
Neutron
);
}
}
inline
std
::
string
_view
get_nucleus_name
(
Code
const
code
)
{
inline
std
::
string
get_nucleus_name
(
Code
const
code
)
{
size_t
const
A
=
get_nucleus_A
(
code
);
size_t
const
A
=
get_nucleus_A
(
code
);
size_t
const
Z
=
get_nucleus_Z
(
code
);
size_t
const
Z
=
get_nucleus_Z
(
code
);
return
fmt
::
format
(
"Nucleus_A{}_Z{}"
,
A
,
Z
);
return
fmt
::
format
(
"Nucleus_A{}_Z{}"
,
A
,
Z
);
...
...
This diff is collapsed.
Click to expand it.
corsika/framework/core/ParticleProperties.hpp
+
1
−
1
View file @
ab227f5d
...
@@ -207,7 +207,7 @@ namespace corsika {
...
@@ -207,7 +207,7 @@ namespace corsika {
* @param code
* @param code
* @return std::string_view
* @return std::string_view
*/
*/
inline
std
::
string
_view
get_nucleus_name
(
Code
const
code
);
inline
std
::
string
get_nucleus_name
(
Code
const
code
);
/**
/**
* @brief convert PDG code to CORSIKA 8 internal code.
* @brief convert PDG code to CORSIKA 8 internal code.
...
...
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