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
Snippets
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
Antonio Augusto Alves Junior
corsika
Commits
a24b4081
Commit
a24b4081
authored
6 years ago
by
Maximilian Reininghaus
Committed by
Maximilian Reininghaus
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
first steps
parent
f097f4f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Environment/BaseExponential.h
+10
-10
10 additions, 10 deletions
Environment/BaseExponential.h
with
10 additions
and
10 deletions
Environment/BaseExponential.h
+
10
−
10
View file @
a24b4081
...
...
@@ -26,10 +26,11 @@ namespace corsika::environment {
* This class provides the grammage/length conversion functionality for
* (locally) flat exponential atmospheres.
*/
template
<
class
TDerived
>
class
BaseExponential
{
protected:
corsika
::
units
::
si
::
MassDensityType
const
fRho0
;
units
::
si
::
MassDensityType
const
fRho0
;
units
::
si
::
LengthType
const
fLambda
;
units
::
si
::
InverseLengthType
const
fInvLambda
;
geometry
::
Point
const
fP0
;
...
...
@@ -50,9 +51,9 @@ namespace corsika::environment {
* \f]
*/
// clang-format on
corsika
::
units
::
si
::
GrammageType
IntegratedGrammage
(
corsika
::
geometry
::
Trajectory
<
corsika
::
geometry
::
Line
>
const
&
line
,
corsika
::
units
::
si
::
LengthType
pTo
,
units
::
si
::
GrammageType
IntegratedGrammage
(
geometry
::
Trajectory
<
geometry
::
Line
>
const
&
line
,
units
::
si
::
LengthType
pTo
,
geometry
::
Vector
<
units
::
si
::
dimensionless_d
>
const
&
axis
)
const
{
auto
const
vDotA
=
line
.
NormalizedDirection
().
dot
(
axis
).
magnitude
();
auto
const
rhoStart
=
GetImplementation
().
GetMassDensity
(
line
.
GetR0
());
...
...
@@ -82,9 +83,9 @@ namespace corsika::environment {
* \f]
*/
// clang-format on
corsika
::
units
::
si
::
LengthType
ArclengthFromGrammage
(
corsika
::
geometry
::
Trajectory
<
corsika
::
geometry
::
Line
>
const
&
line
,
corsika
::
units
::
si
::
GrammageType
pGrammage
,
units
::
si
::
LengthType
ArclengthFromGrammage
(
geometry
::
Trajectory
<
corsika
::
geometry
::
Line
>
const
&
line
,
units
::
si
::
GrammageType
pGrammage
,
geometry
::
Vector
<
units
::
si
::
dimensionless_d
>
const
&
axis
)
const
{
auto
const
vDotA
=
line
.
NormalizedDirection
().
dot
(
axis
).
magnitude
();
auto
const
rhoStart
=
GetImplementation
().
GetMassDensity
(
line
.
GetR0
());
...
...
@@ -96,9 +97,8 @@ namespace corsika::environment {
if
(
logArg
>
0
)
{
return
fLambda
/
vDotA
*
log
(
logArg
);
}
else
{
return
std
::
numeric_limits
<
typename
decltype
(
pGrammage
)
::
value_type
>::
infinity
()
*
corsika
::
units
::
si
::
meter
;
return
std
::
numeric_limits
<
units
::
si
::
GrammageType
::
value_type
>::
infinity
()
*
units
::
si
::
meter
;
}
}
}
...
...
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