Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
37c43a61
Commit
37c43a61
authored
Aug 27, 2020
by
Uwe Schulzweida
Browse files
Renamed set_calendar() to cdf_set_calendar().
parent
288ee20d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/cdf_util.c
View file @
37c43a61
...
...
@@ -337,7 +337,7 @@ void cdf_set_zaxistype(const char *attstring, int *zaxistype)
}
void
set_calendar
(
const
char
*
attstring
,
int
*
calendar
)
void
cdf_
set_calendar
(
const
char
*
attstring
,
int
*
calendar
)
{
// clang-format off
if
(
strStartsWith
(
attstring
,
"standard"
))
*
calendar
=
CALENDAR_STANDARD
;
...
...
src/cdf_util.h
View file @
37c43a61
...
...
@@ -23,6 +23,6 @@ bool is_y_axis(const char *units, const char *stdname);
void
set_gridtype
(
const
char
*
attstring
,
int
*
gridtype
);
void
cdf_set_zaxistype
(
const
char
*
attstring
,
int
*
zaxistype
);
void
set_calendar
(
const
char
*
attstring
,
int
*
calendar
);
void
cdf_
set_calendar
(
const
char
*
attstring
,
int
*
calendar
);
#endif
src/stream_cdf_i.c
View file @
37c43a61
...
...
@@ -4183,7 +4183,7 @@ int cdfInqContents(stream_t *streamptr)
char
attstring
[
1024
];
cdfGetAttText
(
fileID
,
nctimevarid
,
"calendar"
,
sizeof
(
attstring
),
attstring
);
strToLower
(
attstring
);
set_calendar
(
attstring
,
&
calendar
);
cdf_
set_calendar
(
attstring
,
&
calendar
);
}
int
taxisID
;
...
...
Write
Preview
Markdown
is supported
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