Commit 1ded92b9 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Renamed xxxAddOpertors() to addOperators().

parent c97bb40b
......@@ -131,15 +131,9 @@ ensstat_func(void *ensarg)
return nullptr;
}
void *
Ensstat(void *process)
static void
addOperators(void)
{
void *task = CDO_task ? cdo_task_new() : nullptr;
ensstat_arg_t ensstat_arg;
int nrecs0;
cdoInitialize(process);
// clang-format off
cdoOperatorAdd("ensrange", func_range, 0, nullptr);
cdoOperatorAdd("ensmin", func_min, 0, nullptr);
......@@ -155,6 +149,18 @@ Ensstat(void *process)
cdoOperatorAdd("ensskew", func_skew, 0, nullptr);
cdoOperatorAdd("enskurt", func_kurt, 0, nullptr);
// clang-format on
}
void *
Ensstat(void *process)
{
void *task = CDO_task ? cdo_task_new() : nullptr;
ensstat_arg_t ensstat_arg;
int nrecs0;
cdoInitialize(process);
addOperators();
const int operatorID = cdoOperatorID();
const int operfunc = cdoOperatorF1(operatorID);
......
......@@ -110,7 +110,7 @@ fldstatGetParameter(bool *weights)
}
static void
fldstatAddOperators(void)
addOperators(void)
{
// clang-format off
cdoOperatorAdd("fldrange", func_range, 0, nullptr);
......@@ -124,6 +124,8 @@ fldstatAddOperators(void)
cdoOperatorAdd("fldvar", func_varw, 1, nullptr);
cdoOperatorAdd("fldvar1", func_var1w, 1, nullptr);
cdoOperatorAdd("fldpctl", func_pctl, 0, nullptr);
cdoOperatorAdd("fldskew", func_skew, 0, nullptr);
cdoOperatorAdd("fldkurt", func_kurt, 0, nullptr);
// clang-format on
}
......@@ -136,7 +138,7 @@ Fldstat(void *process)
cdoInitialize(process);
fldstatAddOperators();
addOperators();
const int operatorID = cdoOperatorID();
const int operfunc = cdoOperatorF1(operatorID);
......
......@@ -763,7 +763,7 @@ remapField(RemapMethod mapType, remapType *remap, int numNeighbors, double *arra
}
static void
remapAddOperators(void)
addOperators(void)
{
// clang-format off
cdoOperatorAdd("remap", REMAP, 0, nullptr);
......@@ -808,7 +808,7 @@ Remap(void *argument)
cdoInitialize(argument);
remapAddOperators();
addOperators();
const int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -97,7 +97,7 @@ vlistSetFrequency(int vlistID, int comparelen)
}
static void
timstatAddOperators(void)
addOperators(void)
{
// clang-format off
cdoOperatorAdd("timrange", func_range, DATE_LEN, nullptr);
......@@ -173,7 +173,7 @@ Timstat(void *argument)
cdoInitialize(argument);
timstatAddOperators();
addOperators();
const int operatorID = cdoOperatorID();
const int operfunc = cdoOperatorF1(operatorID);
......
......@@ -77,7 +77,7 @@ setAttributes(int vlistID1, int vlistID2, int varID2, int operatorID)
}
static void
varsstatAddOperators(void)
addOperators(void)
{
// clang-format off
cdoOperatorAdd("varsrange", func_range, 0, nullptr);
......@@ -101,7 +101,7 @@ Varsstat(void *process)
cdoInitialize(process);
varsstatAddOperators();
addOperators();
// clang-format off
const int operatorID = cdoOperatorID();
......
......@@ -150,7 +150,7 @@ vlistSetFrequency(int vlistID, int comparelen)
}
static void
timstatAddOperators(void)
addOperators(void)
{
// clang-format off
cdoOperatorAdd("xtimmin", func_min, DATE_LEN, nullptr);
......@@ -198,7 +198,7 @@ XTimstat(void *process)
cdoInitialize(process);
timstatAddOperators();
addOperators();
// clang-format off
int operatorID = cdoOperatorID();
......
Markdown is supported
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