Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
44c5a294
Commit
44c5a294
authored
Jun 21, 2019
by
Uwe Schulzweida
Browse files
Set constant variables to const.
parent
daacb802
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
src/cdf_write.c
View file @
44c5a294
...
@@ -384,7 +384,8 @@ void cdfAppendCoordinates(int fileID, int ncvarid, char coordinates[CDI_MAX_NAME
...
@@ -384,7 +384,8 @@ void cdfAppendCoordinates(int fileID, int ncvarid, char coordinates[CDI_MAX_NAME
}
}
static
static
void
cdfDefineCoordinates
(
const
stream_t
*
streamptr
,
int
ncvarid
,
int
nczvarID
,
int
gridtype
,
int
gridID
,
int
gridindex
,
int
xid
,
int
yid
,
size_t
gridsize
,
char
axis
[
5
],
size_t
iax
)
void
cdfDefineCoordinates
(
const
stream_t
*
streamptr
,
int
ncvarid
,
int
nczvarID
,
int
gridtype
,
int
gridID
,
int
gridindex
,
int
xid
,
int
yid
,
size_t
gridsize
,
char
axis
[
5
],
size_t
iax
)
{
{
const
int
fileID
=
streamptr
->
fileID
;
const
int
fileID
=
streamptr
->
fileID
;
...
@@ -405,7 +406,7 @@ void cdfDefineCoordinates(const stream_t *streamptr, int ncvarid, int nczvarID,
...
@@ -405,7 +406,7 @@ void cdfDefineCoordinates(const stream_t *streamptr, int ncvarid, int nczvarID,
if
(
gridtype
==
GRID_TRAJECTORY
)
if
(
gridtype
==
GRID_TRAJECTORY
)
{
{
cdf_put_att_text
(
fileID
,
ncvarid
,
"coordinates"
,
9
,
"tlon tlat"
);
cdf_put_att_text
(
fileID
,
ncvarid
,
"coordinates"
,
9
,
"tlon tlat"
);
}
}
else
if
(
gridtype
==
GRID_LONLAT
&&
xid
==
CDI_UNDEFID
&&
yid
==
CDI_UNDEFID
&&
gridsize
==
1
)
else
if
(
gridtype
==
GRID_LONLAT
&&
xid
==
CDI_UNDEFID
&&
yid
==
CDI_UNDEFID
&&
gridsize
==
1
)
{
{
...
...
src/stream_cdf_o.c
View file @
44c5a294
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment