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
114a650f
Commit
114a650f
authored
3 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
return new volume
parent
d4d16712
No related branches found
Branches containing commit
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/LayeredSphericalAtmosphereBuilder.inl
+5
-4
5 additions, 4 deletions
corsika/detail/media/LayeredSphericalAtmosphereBuilder.inl
corsika/media/LayeredSphericalAtmosphereBuilder.hpp
+6
-3
6 additions, 3 deletions
corsika/media/LayeredSphericalAtmosphereBuilder.hpp
with
11 additions
and
7 deletions
corsika/detail/media/LayeredSphericalAtmosphereBuilder.inl
+
5
−
4
View file @
114a650f
...
@@ -37,10 +37,10 @@ namespace corsika {
...
@@ -37,10 +37,10 @@ namespace corsika {
template
<
typename
TMediumInterface
,
template
<
typename
>
typename
TMediumModelExtra
,
template
<
typename
TMediumInterface
,
template
<
typename
>
typename
TMediumModelExtra
,
typename
...
TModelArgs
>
typename
...
TModelArgs
>
inline
void
LayeredSphericalAtmosphereBuilder
<
inline
typename
LayeredSphericalAtmosphereBuilder
<
TMediumInterface
,
TMediumModelExtra
,
TMediumInterface
,
TMediumModelExtra
,
TModelArgs
...
>::
volume_tree_node
*
TModelArgs
...
>::
addExponentialLayer
(
GrammageType
b
,
LengthType
c
,
LayeredSphericalAtmosphereBuilder
<
TMediumInterface
,
TMediumModelExtra
,
TModelArgs
...
>::
LengthType
upperBoundary
)
{
addExponentialLayer
(
GrammageType
b
,
LengthType
c
,
LengthType
upperBoundary
)
{
auto
const
radius
=
planetRadius_
+
upperBoundary
;
auto
const
radius
=
planetRadius_
+
upperBoundary
;
checkRadius
(
radius
);
checkRadius
(
radius
);
...
@@ -68,6 +68,7 @@ namespace corsika {
...
@@ -68,6 +68,7 @@ namespace corsika {
}
}
layers_
.
push
(
std
::
move
(
node
));
layers_
.
push
(
std
::
move
(
node
));
return
layers_
.
top
().
get
();
}
}
template
<
typename
TMediumInterface
,
template
<
typename
>
typename
TMediumModelExtra
,
template
<
typename
TMediumInterface
,
template
<
typename
>
typename
TMediumModelExtra
,
...
...
This diff is collapsed.
Click to expand it.
corsika/media/LayeredSphericalAtmosphereBuilder.hpp
+
6
−
3
View file @
114a650f
...
@@ -75,8 +75,12 @@ namespace corsika {
...
@@ -75,8 +75,12 @@ namespace corsika {
,
additionalModelArgs_
{
args
...}
{}
,
additionalModelArgs_
{
args
...}
{}
public
:
public
:
typedef
typename
VolumeTreeNode
<
TMediumInterface
>::
VTN_type
volume_tree_node
;
typedef
typename
VolumeTreeNode
<
TMediumInterface
>::
VTNUPtr
volume_tree_node_uptr
;
void
setNuclearComposition
(
NuclearComposition
const
&
composition
);
void
setNuclearComposition
(
NuclearComposition
const
&
composition
);
void
addExponentialLayer
(
GrammageType
b
,
LengthType
c
,
LengthType
upperBoundary
);
volume_tree_node
*
addExponentialLayer
(
GrammageType
b
,
LengthType
c
,
LengthType
upperBoundary
);
void
addLinearLayer
(
LengthType
c
,
LengthType
upperBoundary
);
void
addLinearLayer
(
LengthType
c
,
LengthType
upperBoundary
);
void
addTabularLayer
(
std
::
function
<
MassDensityType
(
LengthType
)
>
const
&
funcRho
,
void
addTabularLayer
(
std
::
function
<
MassDensityType
(
LengthType
)
>
const
&
funcRho
,
...
@@ -102,8 +106,7 @@ namespace corsika {
...
@@ -102,8 +106,7 @@ namespace corsika {
LengthType
planetRadius_
;
LengthType
planetRadius_
;
std
::
tuple
<
TModelArgs
...
>
const
additionalModelArgs_
;
std
::
tuple
<
TModelArgs
...
>
const
additionalModelArgs_
;
std
::
stack
<
typename
VolumeTreeNode
<
TMediumInterface
>::
VTNUPtr
>
std
::
stack
<
volume_tree_node_uptr
>
layers_
;
// innermost layer first
layers_
;
// innermost layer first
};
// end class LayeredSphericalAtmosphereBuilder
};
// end class LayeredSphericalAtmosphereBuilder
...
...
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