Skip to content
Snippets Groups Projects
Commit 4783de32 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Rename seas_name to seasonNames.

parent 3261d2a7
No related branches found
No related tags found
Loading
Pipeline #13807 passed
......@@ -34,7 +34,6 @@ Seasmonstat(void *process)
int nseason = 0;
int month0 = 0;
int year, month, day;
const char *seas_name[4];
cdo_initialize(process);
......@@ -49,7 +48,8 @@ Seasmonstat(void *process)
operator_check_argc(0);
const auto season_start = get_season_start();
get_season_name(seas_name);
const char *seasonNames[4];
get_season_name(seasonNames);
const auto streamID1 = cdo_open_read(0);
......@@ -201,7 +201,7 @@ Seasmonstat(void *process)
}
if (Options::cdoVerbose)
cdo_print("season: %3d %3s start: %s %s end: %s %s ntimesteps: %ld", nseason, seas_name[seas0],
cdo_print("season: %3d %3s start: %s %s end: %s %s ntimesteps: %ld", nseason, seasonNames[seas0],
date_to_string(vdate0).c_str(), time_to_string(vtime0).c_str(), date_to_string(vdate1).c_str(),
time_to_string(vtime1).c_str(), nsets);
......
......@@ -54,7 +54,6 @@ Seasstat(void *process)
int seas0 = 0;
int oldmon = 0;
int nseason = 0;
const char *seas_name[4];
cdo_initialize(process);
......@@ -76,7 +75,8 @@ Seasstat(void *process)
auto fieldc_stdvar_func = lstd ? fieldc_std : fieldc_var;
const auto season_start = get_season_start();
get_season_name(seas_name);
const char *seasonNames[4];
get_season_name(seasonNames);
const auto streamID1 = cdo_open_read(0);
......@@ -246,7 +246,7 @@ Seasstat(void *process)
}
if (Options::cdoVerbose)
cdo_print("season: %3d %3s start: %s %s end: %s %s ntimesteps: %ld", nseason, seas_name[seas0],
cdo_print("season: %3d %3s start: %s %s end: %s %s ntimesteps: %ld", nseason, seasonNames[seas0],
date_to_string(vdate0).c_str(), time_to_string(vtime0).c_str(), date_to_string(vdate1).c_str(),
time_to_string(vtime1).c_str(), nsets);
......
......@@ -81,8 +81,8 @@ Splittime(void *process)
else
operator_check_argc(0);
const char *seas_name[4];
get_season_name(seas_name);
const char *seasonNames[4];
get_season_name(seasonNames);
for (int i = 0; i < MaxStreams; i++) streamIDs[i] = CDO_STREAM_UNDEF;
for (int i = 0; i < MaxStreams; i++) tsIDs[i] = 0;
......@@ -173,7 +173,7 @@ Splittime(void *process)
{
if (operatorID == SPLITSEAS)
{
sprintf(filename + nchars, "%3s", seas_name[index]);
sprintf(filename + nchars, "%3s", seasonNames[index]);
if (filesuffix[0]) sprintf(filename + nchars + 3, "%s", filesuffix);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment