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
3d6fe672
Commit
3d6fe672
authored
1 year ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
pointers instead of references
parent
71d4c875
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!572
Resolve "Random number generators in modules: linkage, missing symbols, etc."
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/epos/epos.cpp
+4
-4
4 additions, 4 deletions
modules/epos/epos.cpp
modules/epos/epos.hpp
+11
-5
11 additions, 5 deletions
modules/epos/epos.hpp
with
15 additions
and
9 deletions
modules/epos/epos.cpp
+
4
−
4
View file @
3d6fe672
...
...
@@ -22,18 +22,18 @@ namespace epos {
// this is needed as linker object, but it is not needed to do anything
void
ranfcv_
(
double
&
)
{}
// LCOV_EXCL_LINE
void
rmmard_
(
double
rvec
[],
int
const
&
lenv
,
int
&
/*iseq*/
)
{
extern
"C"
void
rmmard_
(
double
rvec
[],
int
const
*
lenv
,
int
const
*
/*iseq*/
)
{
// we ignore iseq and draw all numbers from same C8 sequence
rng_ptr
(
rvec
,
lenv
);
rng_ptr
(
rvec
,
*
lenv
);
}
float
rangen_
()
{
extern
"C"
float
rangen_
()
{
float
f
{};
do
{
f
=
draw_std_rnd
();
}
while
(
f
==
1.0
f
);
return
f
;
}
double
drangen_
()
{
return
draw_std_rnd
();
}
extern
"C"
double
drangen_
()
{
return
draw_std_rnd
();
}
datadir
::
datadir
(
const
std
::
string
&
dir
)
{
if
(
dir
.
length
()
>
500
)
{
// we don't test this limitation: LCOV_EXCL_START
...
...
This diff is collapsed.
Click to expand it.
modules/epos/epos.hpp
+
11
−
5
View file @
3d6fe672
...
...
@@ -26,7 +26,7 @@ namespace epos {
// random number and seed functions
void
ranfst_
(
int
&
seed
);
void
ranfgt_
(
int
&
seed
);
void
rmmard_
(
double
rvec
[],
int
&
lenv
,
int
&
/*iseq*/
);
void
rmmard_
(
double
rvec
[],
int
const
*
lenv
,
int
const
*
/*iseq*/
);
void
rmmaqd_
(
int
seed
[
3
],
int
&
,
char
*
,
int
);
// additional random number functions
...
...
@@ -102,7 +102,9 @@ namespace epos {
// common blocks as
// defined in epos.inc
extern
struct
{
int
inicnt
;
}
cicnt_
;
extern
struct
{
int
inicnt
;
}
cicnt_
;
extern
struct
{
int
intpol
;
...
...
@@ -111,7 +113,9 @@ namespace epos {
int
isetcs
;
}
hadr6_
;
extern
struct
{
int
infragm
;
}
nucl6_
;
extern
struct
{
int
infragm
;
}
nucl6_
;
extern
struct
{
int
iorsce
;
...
...
@@ -168,7 +172,9 @@ namespace epos {
int
iremn
;
}
othe2_
;
extern
struct
{
int
ktnbod
;
}
metr7_
;
extern
struct
{
int
ktnbod
;
}
metr7_
;
extern
struct
{
float
egylow
;
...
...
@@ -366,7 +372,7 @@ namespace epos {
int
jwseed
;
int
ixgeometry
;
}
prnt3_
;
unsigned
int
constexpr
mmry
=
1
;
unsigned
int
constexpr
mxptl
=
200000
/
mmry
;
extern
struct
{
...
...
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