Commit 61208030 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Renamed month_to_season() to monthToSeason().

parent 60a1b827
......@@ -82,7 +82,7 @@ Seascount(void *process)
int newmon = month;
if (season_start == START_DEC && newmon == 12) newmon = 0;
const int seas = month_to_season(month);
const int seas = monthToSeason(month);
if (nsets == 0)
{
......
......@@ -147,7 +147,7 @@ Seaspctl(void *process)
int newmon = month;
if (season_start == START_DEC && newmon == 12) newmon = 0;
const auto seas = month_to_season(month);
const auto seas = monthToSeason(month);
if (nsets == 0)
{
......
......@@ -130,7 +130,7 @@ Seasstat(void *process)
if (season_start == START_DEC && newmon == 12) newmon = 0;
const auto seas = month_to_season(month);
const auto seas = monthToSeason(month);
if (nsets == 0)
{
......
......@@ -161,7 +161,7 @@ Splittime(void *process)
index = (vdate / operintval) % 100;
if (index < 0) index = -index;
if (operatorID == SPLITSEAS) index = month_to_season(index);
if (operatorID == SPLITSEAS) index = monthToSeason(index);
}
else if (operfunc == func_time)
{
......
......@@ -135,7 +135,7 @@ Ymonarith(void *process)
while ((nrecs = cdoStreamInqTimestep(streamID2, tsID)))
{
int mon = getMonthIndex(taxisInqVdate(taxisID2));
if (opertype == SEASONAL) mon = month_to_season(mon + 1);
if (opertype == SEASONAL) mon = monthToSeason(mon + 1);
if (vars2[mon].size()) alreadyAllocated(opertype == SEASONAL, mon, seas_name);
fieldsFromVlist(vlistID2, vars2[mon], FIELD_VEC);
......@@ -155,7 +155,7 @@ Ymonarith(void *process)
while ((nrecs = cdoStreamInqTimestep(streamID1, tsID)))
{
auto mon = getMonthIndex(taxisInqVdate(taxisID1));
if (opertype == SEASONAL) mon = month_to_season(mon + 1);
if (opertype == SEASONAL) mon = monthToSeason(mon + 1);
if (vars2[mon].size() == 0) notFound(opertype == SEASONAL, mon, seas_name);
taxisCopyTimestep(taxisID3, taxisID1);
......
......@@ -120,7 +120,7 @@ Yseaspctl(void *process)
if (Options::cdoVerbose) cdoPrint("process timestep: %d %d %d", tsID + 1, vdate, vtime);
const auto seas = month_to_season(decodeMonth(vdate));
const auto seas = monthToSeason(decodeMonth(vdate));
set_date(vdate, vtime, &datetime2[seas]);
......@@ -166,7 +166,7 @@ Yseaspctl(void *process)
const auto month = decodeMonth(vdate);
if (month < 0 || month > 16) cdoAbort("Month %d out of range!", month);
const auto seas = month_to_season(month);
const auto seas = monthToSeason(month);
set_date(vdate, vtime, &datetime1[seas]);
......
......@@ -137,7 +137,7 @@ Yseasstat(void *process)
const auto vtime = taxisInqVtime(taxisID1);
cdiDecodeDate(vdate, &year, &month, &day);
const auto seas = month_to_season(month);
const auto seas = monthToSeason(month);
set_date(vdate, vtime, &datetime[seas]);
......
......@@ -50,7 +50,7 @@ get_season_name(const char *seas_name[])
}
int
month_to_season(int month)
monthToSeason(int month)
{
int season_start = get_season_start();
int seas = -1;
......
......@@ -8,4 +8,4 @@ int get_season_start(void);
void get_season_name(const char *seas_name[]);
int month_to_season(int month);
int monthToSeason(int month);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment