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
cdo
Commits
f28facc7
Commit
f28facc7
authored
Oct 17, 2019
by
Uwe Schulzweida
Browse files
Renamed get_season_name() to getSeasonName().
parent
61208030
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/Seascount.cc
View file @
f28facc7
...
...
@@ -41,7 +41,7 @@ Seascount(void *process)
cdoOperatorAdd
(
"seascount"
,
0
,
0
,
nullptr
);
const
int
season_start
=
get
_s
eason
_s
tart
();
const
int
season_start
=
get
S
eason
S
tart
();
const
auto
streamID1
=
cdoOpenRead
(
0
);
...
...
src/Seaspctl.cc
View file @
f28facc7
...
...
@@ -52,7 +52,7 @@ Seaspctl(void *process)
const
auto
pn
=
parameter2double
(
cdoOperatorArgv
(
0
));
percentile_check_number
(
pn
);
season_start
=
get
_s
eason
_s
tart
();
season_start
=
get
S
eason
S
tart
();
const
auto
streamID1
=
cdoOpenRead
(
0
);
const
auto
streamID2
=
cdoOpenRead
(
1
);
...
...
src/Seasstat.cc
View file @
f28facc7
...
...
@@ -78,8 +78,8 @@ Seasstat(void *process)
// clang-format on
const
bool
lvars2
=
lvarstd
||
lrange
;
const
auto
season_start
=
get
_s
eason
_s
tart
();
get
_s
eason
_n
ame
(
seas_name
);
const
auto
season_start
=
get
S
eason
S
tart
();
get
S
eason
N
ame
(
seas_name
);
const
auto
streamID1
=
cdoOpenRead
(
0
);
...
...
src/Splittime.cc
View file @
f28facc7
...
...
@@ -91,7 +91,7 @@ Splittime(void *process)
if
(
operatorID
==
SPLITMON
&&
operatorArgc
()
==
1
)
format
=
cdoOperatorArgv
(
0
).
c_str
();
const
char
*
seas_name
[
4
];
get
_s
eason
_n
ame
(
seas_name
);
get
S
eason
N
ame
(
seas_name
);
for
(
int
i
=
0
;
i
<
MAX_STREAMS
;
i
++
)
streamIDs
[
i
]
=
CDO_STREAM_UNDEF
;
for
(
int
i
=
0
;
i
<
MAX_STREAMS
;
i
++
)
tsIDs
[
i
]
=
0
;
...
...
src/Ymonarith.cc
View file @
f28facc7
...
...
@@ -127,7 +127,7 @@ Ymonarith(void *process)
const
auto
streamID3
=
cdoOpenWrite
(
2
);
cdoDefVlist
(
streamID3
,
vlistID3
);
if
(
opertype
==
SEASONAL
)
get
_s
eason
_n
ame
(
seas_name
);
if
(
opertype
==
SEASONAL
)
get
S
eason
N
ame
(
seas_name
);
FieldVector2D
vars2
[
MaxMonths
];
...
...
src/cdo_season.cc
View file @
f28facc7
...
...
@@ -11,7 +11,7 @@ const char *seas_name_jan[4] = { "JFM", "AMJ", "JAS", "OND" };
static
int
season_start
=
START_DEC
;
int
get
_s
eason
_s
tart
(
void
)
get
S
eason
S
tart
(
void
)
{
static
bool
lgetenv
=
true
;
...
...
@@ -41,9 +41,9 @@ get_season_start(void)
}
void
get
_s
eason
_n
ame
(
const
char
*
seas_name
[])
get
S
eason
N
ame
(
const
char
*
seas_name
[])
{
if
(
get
_s
eason
_s
tart
()
==
START_DEC
)
if
(
get
S
eason
S
tart
()
==
START_DEC
)
for
(
int
i
=
0
;
i
<
4
;
++
i
)
seas_name
[
i
]
=
seas_name_dec
[
i
];
else
for
(
int
i
=
0
;
i
<
4
;
++
i
)
seas_name
[
i
]
=
seas_name_jan
[
i
];
...
...
@@ -52,7 +52,7 @@ get_season_name(const char *seas_name[])
int
monthToSeason
(
int
month
)
{
int
season_start
=
get
_s
eason
_s
tart
();
int
season_start
=
get
S
eason
S
tart
();
int
seas
=
-
1
;
if
(
month
<
0
||
month
>
16
)
cdoAbort
(
"Month %d out of range!"
,
month
);
...
...
src/cdo_season.h
View file @
f28facc7
...
...
@@ -4,8 +4,8 @@ enum
START_JAN
};
int
get
_s
eason
_s
tart
(
void
);
int
get
S
eason
S
tart
(
void
);
void
get
_s
eason
_n
ame
(
const
char
*
seas_name
[]);
void
get
S
eason
N
ame
(
const
char
*
seas_name
[]);
int
monthToSeason
(
int
month
);
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