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
c3174989
Commit
c3174989
authored
3 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
style
parent
64d6974e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
corsika/detail/media/GeomagneticModel.inl
+7
-7
7 additions, 7 deletions
corsika/detail/media/GeomagneticModel.inl
modules/conex
+1
-1
1 addition, 1 deletion
modules/conex
modules/data
+1
-1
1 addition, 1 deletion
modules/data
with
9 additions
and
9 deletions
corsika/detail/media/GeomagneticModel.inl
+
7
−
7
View file @
c3174989
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
namespace
corsika
{
namespace
corsika
{
inline
GeomagneticModel
::
GeomagneticModel
(
Point
const
&
center
,
inline
GeomagneticModel
::
GeomagneticModel
(
Point
const
&
center
,
std
::
string
const
&
dataFile
)
std
::
string
const
&
dataFile
)
:
center_
(
center
)
{
:
center_
(
center
)
{
// Read in coefficients
// Read in coefficients
...
@@ -73,8 +73,7 @@ namespace corsika {
...
@@ -73,8 +73,7 @@ namespace corsika {
int
iEpoch
=
int
(
epoch
);
int
iEpoch
=
int
(
epoch
);
if
(
parameters_
.
count
(
iEpoch
)
!=
0
)
{
if
(
parameters_
.
count
(
iEpoch
)
!=
0
)
{
throw
std
::
runtime_error
(
throw
std
::
runtime_error
(
"GeomagneticModel input file has duplicate Epoch. Fix."
);
"GeomagneticModel input file has duplicate Epoch. Fix."
);
}
}
parameters_
[
iEpoch
]
=
std
::
vector
<
ParameterLine
>
(
nPar
);
parameters_
[
iEpoch
]
=
std
::
vector
<
ParameterLine
>
(
nPar
);
...
@@ -89,9 +88,9 @@ namespace corsika {
...
@@ -89,9 +88,9 @@ namespace corsika {
}
}
inline
MagneticFieldVector
GeomagneticModel
::
getField
(
double
const
year
,
inline
MagneticFieldVector
GeomagneticModel
::
getField
(
double
const
year
,
LengthType
const
altitude
,
LengthType
const
altitude
,
double
const
latitude
,
double
const
latitude
,
double
const
longitude
)
{
double
const
longitude
)
{
int
iYear
=
int
(
year
);
int
iYear
=
int
(
year
);
int
iEpoch
=
0
;
int
iEpoch
=
0
;
...
@@ -185,7 +184,8 @@ namespace corsika {
...
@@ -185,7 +184,8 @@ namespace corsika {
magneticfield
[
2
]
*
cos
(
lat_sph
-
lat_geo
);
magneticfield
[
2
]
*
cos
(
lat_sph
-
lat_geo
);
return
MagneticFieldVector
{
center_
.
getCoordinateSystem
(),
magneticfield_geo
[
0
]
*
1
_nT
,
return
MagneticFieldVector
{
center_
.
getCoordinateSystem
(),
magneticfield_geo
[
0
]
*
1
_nT
,
magneticfield_geo
[
1
]
*
-
1
_nT
,
magneticfield_geo
[
2
]
*
-
1
_nT
};
magneticfield_geo
[
1
]
*
-
1
_nT
,
magneticfield_geo
[
2
]
*
-
1
_nT
};
}
}
}
// namespace corsika
}
// namespace corsika
\ No newline at end of file
This diff is collapsed.
Click to expand it.
conex
@
dd4f4dcf
Compare
cfcd301f
...
dd4f4dcf
Subproject commit
cfcd301fefa951d04d259cbd8866ce855e20fd0c
Subproject commit
dd4f4dcf325b40f76bb7e60bf61e77ebf99fa098
This diff is collapsed.
Click to expand it.
data
@
c42a119e
Compare
eded8336
...
c42a119e
Subproject commit
eded833608bbc6845f9d7e2af4e151683f27818f
Subproject commit
c42a119ea1dc5053cb748994a9d8a4561f2206d5
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