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
b3acade2
Commit
b3acade2
authored
Mar 24, 2018
by
Uwe Schulzweida
Browse files
cdfDefDatatype(): changed interface.
parent
b6cad026
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cdf_write.c
View file @
b3acade2
...
...
@@ -38,7 +38,6 @@ void cdfDefVarDeflate(int ncid, int ncvarid, int deflate_level)
#endif
}
int
cdfDefDatatype
(
int
datatype
,
stream_t
*
streamptr
)
{
int
xtype
=
NC_FLOAT
;
...
...
@@ -53,7 +52,7 @@ int cdfDefDatatype(int datatype, stream_t *streamptr)
else
if
(
datatype
==
CDI_DATATYPE_UINT16
)
xtype
=
NC_USHORT
;
else
if
(
datatype
==
CDI_DATATYPE_UINT32
)
xtype
=
NC_UINT
;
else
if
(
datatype
==
CDI_DATATYPE_CPX32
||
datatype
==
CDI_DATATYPE_CPX64
)
Error
(
"CDI library does not support complex numbers with NetCDF!"
);
Error
(
"CDI library does not support complex numbers with NetCDF
4/HDF5
!"
);
#else
else
if
(
datatype
==
CDI_DATATYPE_UINT8
)
xtype
=
NC_SHORT
;
else
if
(
datatype
==
CDI_DATATYPE_UINT16
)
xtype
=
NC_INT
;
...
...
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