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
91a5af99
Commit
91a5af99
authored
3 years ago
by
Nikos Karastathis
Committed by
Ralf Ulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Renamed class members.
parent
558894f6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/media/ExponentialRefractiveIndex.inl
+6
-6
6 additions, 6 deletions
corsika/detail/media/ExponentialRefractiveIndex.inl
corsika/media/ExponentialRefractiveIndex.hpp
+5
-5
5 additions, 5 deletions
corsika/media/ExponentialRefractiveIndex.hpp
with
11 additions
and
11 deletions
corsika/detail/media/ExponentialRefractiveIndex.inl
+
6
−
6
View file @
91a5af99
...
...
@@ -15,16 +15,16 @@ namespace corsika {
template
<
typename
T
>
template
<
typename
...
Args
>
ExponentialRefractiveIndex
<
T
>::
ExponentialRefractiveIndex
(
double
const
n0
,
InverseLengthType
const
lambda
_
,
Point
const
center
_
,
LengthType
const
planetR
adius
_
,
Args
&&
...
args
)
double
const
n0
,
InverseLengthType
const
lambda
,
Point
const
center
,
LengthType
const
r
adius
,
Args
&&
...
args
)
:
T
(
std
::
forward
<
Args
>
(
args
)...)
,
n
_
0
(
n0
)
,
lambda
(
lambda
_
)
,
center
(
center
_
)
,
planetRadius
(
planetR
adius
_
)
{}
,
n0
_
(
n0
)
,
lambda
_
(
lambda
)
,
center
_
(
center
)
,
radius_
(
r
adius
)
{}
template
<
typename
T
>
double
ExponentialRefractiveIndex
<
T
>::
getRefractiveIndex
(
Point
const
&
point
)
const
{
return
n
_
0
*
exp
((
-
lambda
)
*
(
distance
(
point
,
center
)
-
planetR
adius
));
return
n0
_
*
exp
((
-
lambda
_
)
*
(
distance
(
point
,
center
_
)
-
r
adius
_
));
}
}
// namespace corsika
This diff is collapsed.
Click to expand it.
corsika/media/ExponentialRefractiveIndex.hpp
+
5
−
5
View file @
91a5af99
...
...
@@ -22,10 +22,10 @@ namespace corsika {
template
<
typename
T
>
class
ExponentialRefractiveIndex
:
public
T
{
double
n
_
0
;
///< n0 constant.
InverseLengthType
lambda
;
///< lambda parameter.
LengthType
planetR
adius
;
///< the planet radius.
Point
center
;
///< center of the planet.
double
n0
_
;
///< n0 constant.
InverseLengthType
lambda
_
;
///< lambda parameter.
LengthType
r
adius
_
;
///< the planet radius.
Point
center
_
;
///< center of the planet.
public:
/**
...
...
@@ -38,7 +38,7 @@ namespace corsika {
* @param field The refractive index to return to a given point.
*/
template
<
typename
...
Args
>
ExponentialRefractiveIndex
(
double
const
n0
,
InverseLengthType
const
lambda
_
,
Point
const
center
_
,
LengthType
const
planetR
adius
_
,
ExponentialRefractiveIndex
(
double
const
n0
,
InverseLengthType
const
lambda
,
Point
const
center
,
LengthType
const
r
adius
,
Args
&&
...
args
);
/**
...
...
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