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
65b80767
Commit
65b80767
authored
Nov 11, 2015
by
Uwe Schulzweida
Browse files
merge declaration and definition
parent
23c3438b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/cdf_read.c
View file @
65b80767
#if
def
ined (
HAVE_CONFIG_H
)
#
include "config.h"
#ifdef
HAVE_CONFIG_H
#include
"config.h"
#endif
#ifdef HAVE_LIBNETCDF
...
...
src/stream_cdf.c
View file @
65b80767
This diff is collapsed.
Click to expand it.
src/stream_grb.c
View file @
65b80767
#if
def
ined (
HAVE_CONFIG_H
)
#ifdef
HAVE_CONFIG_H
#include
"config.h"
#endif
#include
<stdio.h>
#include
<string.h>
#include
"dmemory.h"
#include
"cdi.h"
#include
"cdi_int.h"
#include
"stream_cgribex.h"
...
...
@@ -14,8 +10,6 @@
#include
"file.h"
#include
"cgribex.h"
/* gribZip gribGetZip gribGinfo */
#include
"gribapi.h"
#include
"namespace.h"
int
grib1ltypeToZaxisType
(
int
grib_ltype
)
...
...
@@ -51,7 +45,7 @@ int grib1ltypeToZaxisType(int grib_ltype)
case
GRIB1_LTYPE_MIX_LAYER
:
{
zaxistype
=
ZAXIS_MIX_LAYER
;
break
;
}
}
return
(
zaxistype
)
;
return
zaxistype
;
}
...
...
@@ -88,7 +82,7 @@ int grib2ltypeToZaxisType(int grib_ltype)
case
GRIB2_LTYPE_REFERENCE
:
{
zaxistype
=
ZAXIS_REFERENCE
;
break
;
}
}
return
(
zaxistype
)
;
return
zaxistype
;
}
...
...
@@ -148,7 +142,7 @@ int zaxisTypeToGrib2ltype(int zaxistype)
case
ZAXIS_ATMOSPHERE
:
{
grib_ltype
=
GRIB2_LTYPE_ATMOSPHERE
;
break
;
}
}
return
(
grib_ltype
)
;
return
grib_ltype
;
}
...
...
@@ -169,7 +163,7 @@ int grbBitsPerValue(int datatype)
bitsPerValue
=
16
;
}
return
(
bitsPerValue
)
;
return
bitsPerValue
;
}
...
...
@@ -207,7 +201,7 @@ int grbScanTimestep1(stream_t * streamptr)
status
=
gribapiScanTimestep1
(
streamptr
);
#endif
return
(
status
)
;
return
status
;
}
static
...
...
@@ -230,7 +224,7 @@ int grbScanTimestep2(stream_t * streamptr)
status
=
gribapiScanTimestep2
(
streamptr
);
#endif
return
(
status
)
;
return
status
;
}
static
...
...
@@ -254,7 +248,7 @@ int grbScanTimestep(stream_t * streamptr)
Error
(
"Sufficient GRIB support unavailable!"
);
#endif
return
(
status
)
;
return
status
;
}
...
...
@@ -274,7 +268,7 @@ int grbInqContents(stream_t * streamptr)
fileSetPos
(
fileID
,
0
,
SEEK_SET
);
return
(
status
)
;
return
status
;
}
#endif
...
...
@@ -309,7 +303,7 @@ int grbInqTimestep(stream_t * streamptr, int tsID)
nrecs
=
streamptr
->
tsteps
[
tsID
].
nrecs
;
}
return
(
nrecs
)
;
return
nrecs
;
}
...
...
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