Skip to content
GitLab
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
32fa2a7f
Commit
32fa2a7f
authored
Nov 09, 2015
by
Uwe Schulzweida
Browse files
renamed defineAttributes to cdfDefineAttributes
parent
24b58b68
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cdf_write.c
View file @
32fa2a7f
...
...
@@ -165,7 +165,7 @@ void *resizeBuf(void **buf, size_t *bufSize, size_t reqSize)
}
static
void
d
efineAttributes
(
int
vlistID
,
int
varID
,
int
fileID
,
int
ncvarID
)
void
cdfD
efineAttributes
(
int
vlistID
,
int
varID
,
int
fileID
,
int
ncvarID
)
{
int
atttype
,
attlen
;
size_t
len
;
...
...
@@ -234,7 +234,7 @@ void cdfDefGlobalAtts(stream_t *streamptr)
if
(
natts
>
0
&&
streamptr
->
ncmode
==
2
)
cdf_redef
(
fileID
);
d
efineAttributes
(
vlistID
,
CDI_GLOBAL
,
fileID
,
NC_GLOBAL
);
cdfD
efineAttributes
(
vlistID
,
CDI_GLOBAL
,
fileID
,
NC_GLOBAL
);
if
(
natts
>
0
&&
streamptr
->
ncmode
==
2
)
cdf_enddef
(
fileID
);
...
...
@@ -742,7 +742,7 @@ int cdfDefVar(stream_t *streamptr, int varID)
}
/* Attributes */
d
efineAttributes
(
vlistID
,
varID
,
fileID
,
ncvarid
);
cdfD
efineAttributes
(
vlistID
,
varID
,
fileID
,
ncvarid
);
/* if ( streamptr->ncmode == 2 ) cdf_enddef(fileID); */
...
...
@@ -1065,7 +1065,6 @@ void cdf_write_var(stream_t *streamptr, int varID, int memtype, const void *data
long
nvals
=
gridInqSize
(
gridID
)
*
zaxisInqSize
(
zaxisID
);
cdf_write_var_data
(
fileID
,
vlistID
,
varID
,
ncvarid
,
dtype
,
nvals
,
xsize
,
ysize
,
swapxy
,
start
,
count
,
memtype
,
data
,
nmiss
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment