IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika-data
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
Air Shower Physics
corsika-data
Commits
47e6e5ab
Commit
47e6e5ab
authored
4 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
clang
parent
0fd890c3
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
readLib/source/Interface.boost.cc
+2
-2
2 additions, 2 deletions
readLib/source/Interface.boost.cc
readLib/source/Interface.dummy.cc
+1
-3
1 addition, 3 deletions
readLib/source/Interface.dummy.cc
with
3 additions
and
5 deletions
readLib/source/Interface.boost.cc
+
2
−
2
View file @
47e6e5ab
...
...
@@ -85,12 +85,12 @@ namespace corsika_data {
extern
"C"
{
void
cordataopenfile_
(
const
char
*
name
,
const
int
stringlength
)
{
// make a 'real' string out of fortran one (if \0 is missing)
char
*
buffer
=
new
char
[
stringlength
+
1
];
char
*
buffer
=
new
char
[
stringlength
+
1
];
for
(
int
i
=
0
;
i
<
stringlength
;
++
i
)
buffer
[
i
]
=
name
[
i
];
// if not already terminated by 0, add it
if
(
buffer
[
stringlength
-
1
]
!=
'\0'
)
buffer
[
stringlength
]
=
'\0'
;
CorDataOpenFile
(
buffer
);
delete
[]
buffer
;
delete
[]
buffer
;
}
void
cordatafillarray_
(
double
*
data
,
const
int
&
length
)
{
global_DataFile
.
FillArray
(
data
,
length
);
...
...
This diff is collapsed.
Click to expand it.
readLib/source/Interface.dummy.cc
+
1
−
3
View file @
47e6e5ab
...
...
@@ -41,9 +41,7 @@ namespace corsika_data {
// the fortran interface functions
extern
"C"
{
void
cordataopenfile_
(
const
char
*
name
,
const
int
)
{
CorDataOpenFile
(
name
);
}
void
cordataopenfile_
(
const
char
*
name
,
const
int
)
{
CorDataOpenFile
(
name
);
}
void
cordatafillarray_
(
double
*
data
,
const
int
&
length
)
{
CorDataFillArray
(
data
,
length
);
}
...
...
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