Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
6a09acf4
Commit
6a09acf4
authored
5 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Extend conditionally compiled region.
* There is no caller for the newly removed function stubs anyway.
parent
9ff23c2f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cdf.c
+2
-12
2 additions, 12 deletions
src/cdf.c
with
2 additions
and
12 deletions
src/cdf.c
+
2
−
12
View file @
6a09acf4
...
...
@@ -14,13 +14,10 @@
#include
"cdf_int.h"
#if defined (HAVE_LIBNETCDF)
const
char
*
cdfLibraryVersion
(
void
)
{
#if defined (HAVE_LIBNETCDF)
return
nc_inq_libvers
();
#else
return
"library undefined"
;
#endif
}
#if defined(HAVE_H5GET_LIBVERSION)
...
...
@@ -64,7 +61,6 @@ void cdfDebug(int debug)
Message
(
"debug level %d"
,
debug
);
}
#if defined (HAVE_LIBNETCDF)
static
void
cdfComment
(
int
ncid
)
{
...
...
@@ -87,12 +83,10 @@ void cdfComment(int ncid)
cdf_put_att_text
(
ncid
,
NC_GLOBAL
,
"CDI"
,
strlen
(
comment
),
comment
);
}
#endif
static
int
cdfOpenFile
(
const
char
*
filename
,
const
char
*
mode
,
int
*
filetype
)
{
int
ncid
=
-
1
;
#if defined (HAVE_LIBNETCDF)
int
fmode
=
tolower
(
*
mode
);
int
writemode
=
NC_CLOBBER
;
int
readmode
=
NC_NOWRITE
;
...
...
@@ -138,7 +132,6 @@ static int cdfOpenFile(const char *filename, const char *mode, int *filetype)
ncid
=
CDI_EINVAL
;
}
}
#endif
return
ncid
;
}
...
...
@@ -169,10 +162,8 @@ int cdfOpen64(const char *filename, const char *mode)
if
(
CDF_Debug
)
Message
(
"Open %s with mode %c"
,
filename
,
*
mode
);
#if defined (HAVE_LIBNETCDF)
#if ! defined (NC_64BIT_OFFSET)
open_file
=
FALSE
;
#endif
#endif
if
(
open_file
)
...
...
@@ -221,15 +212,14 @@ int cdf4Open(const char *filename, const char *mode, int *filetype)
static
void
cdfCloseFile
(
int
fileID
)
{
#if defined (HAVE_LIBNETCDF)
cdf_close
(
fileID
);
#endif
}
void
cdfClose
(
int
fileID
)
{
cdfCloseFile
(
fileID
);
}
#endif
/*
* Local Variables:
* c-file-style: "Java"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment