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
37ab3715
Commit
37ab3715
authored
Sep 10, 2013
by
Uwe Schulzweida
Browse files
file.c::pagesize: check for getpagesize()
parent
7fb8711c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/file.c
View file @
37ab3715
...
...
@@ -350,7 +350,8 @@ const char *fileLibraryVersion(void)
static
int
pagesize
(
void
)
{
#if defined (HAVE_MMAP)
#if defined(HAVE_MMAP) && defined(HAVE_GETPAGESIZE)
int
getpagesize
(
void
);
return
((
int
)
getpagesize
());
#else
return
((
int
)
POSIXIO_DEFAULT_PAGESIZE
);
...
...
src/stream_gribapi.c
View file @
37ab3715
...
...
@@ -2884,21 +2884,6 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int param, int zaxisID,
}
}
// if ( editionNumber <= 1 )
// ; // not available
// else
// {
// reference = zaxisInqReference(zaxisID);
// gribapiDefLevelType(gh, gcinit, "typeOfFirstFixedSurface", GRIB2_LTYPE_REFERENCE);
// GRIB_CHECK(grib_set_long(gh, "NV", 6), 0);
// GRIB_CHECK(grib_set_double(gh, "nlev", (double) zaxisInqSize(zaxisID)), 0);
// GRIB_CHECK(grib_set_double(gh, "numberOfVGridUsed", (double) reference), 0);
// len = 16;
// if (grib_set_bytes(gh, "uuidOfVGrid", (unsigned char *) zaxisInqUUID(zaxisID, uuid), &len) != 0)
// Warning("Can't write UUID!");
// GRIB_CHECK(grib_set_double(gh, "level", level), 0);
// }
break
;
}
case
ZAXIS_GENERIC
:
...
...
src/zaxis.c
View file @
37ab3715
...
...
@@ -698,7 +698,7 @@ void zaxisDefReference(int zaxisID, const int reference)
{
zaxis_t
*
zaxisptr
;
if
(
reshGetStatus
(
zaxisID
,
&
zaxisOps
)
==
CLOSED
)
if
(
reshGetStatus
(
zaxisID
,
&
zaxisOps
)
==
CLOSED
)
{
xwarning
(
"%s"
,
"Operation not executed."
);
return
;
...
...
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