Commit 4eadb3a0 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added clang-format switches.

parent 03a395ea
......@@ -49,6 +49,7 @@ void *Arith(void *argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("add", func_add, 0, NULL);
cdoOperatorAdd("sub", func_sub, 0, NULL);
cdoOperatorAdd("mul", func_mul, 0, NULL);
......@@ -56,6 +57,7 @@ void *Arith(void *argument)
cdoOperatorAdd("min", func_min, 0, NULL);
cdoOperatorAdd("max", func_max, 0, NULL);
cdoOperatorAdd("atan2", func_atan2, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -78,11 +78,13 @@ void *Arithc(void *argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("addc", func_add, 0, "constant value");
cdoOperatorAdd("subc", func_sub, 0, "constant value");
cdoOperatorAdd("mulc", func_mul, 0, "constant value");
cdoOperatorAdd("divc", func_div, 0, "constant value");
cdoOperatorAdd("mod", func_mod, 0, "divisor");
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -78,11 +78,13 @@ void *Arithdays(void *argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("muldpm", func_mul, func_month, NULL);
cdoOperatorAdd("divdpm", func_div, func_month, NULL);
cdoOperatorAdd("muldpy", func_mul, func_year, NULL);
cdoOperatorAdd("divdpy", func_div, func_year, NULL);
int MULDOY = cdoOperatorAdd("muldoy", func_mul, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -58,6 +58,7 @@ void *Change(void *argument)
cdoInitialize(argument);
// clang-format off
int CHCODE = cdoOperatorAdd("chcode", 0, 0, "pairs of old and new code numbers");
int CHTABNUM = cdoOperatorAdd("chtabnum", 0, 0, "pairs of old and new GRIB1 table numbers");
int CHPARAM = cdoOperatorAdd("chparam", 0, 0, "pairs of old and new parameter identifiers");
......@@ -67,6 +68,7 @@ void *Change(void *argument)
int CHLEVELC = cdoOperatorAdd("chlevelc", 0, 0, "code number, old and new level");
int CHLEVELV = cdoOperatorAdd("chlevelv", 0, 0, "variable name, old and new level");
int CHLTYPE = cdoOperatorAdd("chltype", 0, 0, "pairs of old and new type");
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -44,8 +44,10 @@ void *Cond(void *argument)
cdoInitialize(argument);
// clang-format off
int IFTHEN = cdoOperatorAdd("ifthen", 0, 0, NULL);
int IFNOTTHEN = cdoOperatorAdd("ifnotthen", 0, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -39,8 +39,10 @@ void *Condc(void *argument)
cdoInitialize(argument);
// clang-format off
int IFTHENC = cdoOperatorAdd("ifthenc", 0, 0, NULL);
int IFNOTTHENC = cdoOperatorAdd("ifnotthenc", 0, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -53,9 +53,11 @@ void *Copy(void *argument)
bool lcopy = UNCHANGED_RECORD;
// clang-format off
cdoOperatorAdd("copy", 0, 0, NULL);
int SELALL = cdoOperatorAdd("selall", 0, 0, NULL);
int SZIP = cdoOperatorAdd("szip", 0, 0, NULL);
// clang-format on
#ifdef HIRLAM_EXTENSIONS
// KEEP in mind the difference between copy and selall with respect to unpacking and repacking the GRIB information!
......
......@@ -39,8 +39,10 @@ void *Deltime(void *argument)
bool lcopy = UNCHANGED_RECORD;
// clang-format off
int DELDAY = cdoOperatorAdd("delday", 0, 0, NULL);
int DEL29FEB = cdoOperatorAdd("del29feb", 0, 0, NULL);
// clang-format on
UNUSED(DELDAY);
......
......@@ -58,8 +58,10 @@ void *Derivepar(void *argument)
cdoInitialize(argument);
// clang-format off
int GHEIGHT = cdoOperatorAdd("gheight", 0, 0, NULL);
int SEALEVELPRESSURE = cdoOperatorAdd("sealevelpressure", 0, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -43,10 +43,12 @@ void *Diff(void *argument)
cdoInitialize(argument);
// clang-format off
int DIFF = cdoOperatorAdd("diff", 0, 0, NULL);
int DIFFP = cdoOperatorAdd("diffp", 0, 0, NULL);
int DIFFN = cdoOperatorAdd("diffn", 0, 0, NULL);
int DIFFC = cdoOperatorAdd("diffc", 0, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -198,9 +198,11 @@ void *EOFs(void * argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("eof", EOF_, 0, NULL);
cdoOperatorAdd("eoftime", EOF_TIME, 0, NULL);
cdoOperatorAdd("eofspatial", EOF_SPATIAL, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -1026,9 +1026,11 @@ void *EcaPd(void *argument)
cdoInitialize(argument);
// clang-format off
ECA_PD = cdoOperatorAdd("eca_pd", 0, 31, NULL);
ECA_R10MM = cdoOperatorAdd("eca_r10mm", 0, 31, NULL);
ECA_R20MM = cdoOperatorAdd("eca_r20mm", 0, 31, NULL);
// clang-format on
operatorID = cdoOperatorID();
......
......@@ -1438,10 +1438,12 @@ void *Echam5ini(void *argument)
cdoInitialize(argument);
// clang-format off
int IMPORT_E5ML = cdoOperatorAdd("import_e5ml", func_read, 0, NULL);
int IMPORT_E5RES = cdoOperatorAdd("import_e5res", func_read, 0, NULL);
int EXPORT_E5ML = cdoOperatorAdd("export_e5ml", func_write, 0, NULL);
int EXPORT_E5RES = cdoOperatorAdd("export_e5res", func_write, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -142,6 +142,7 @@ void *Ensstat(void *argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("ensrange", func_range, 0, NULL);
cdoOperatorAdd("ensmin", func_min, 0, NULL);
cdoOperatorAdd("ensmax", func_max, 0, NULL);
......@@ -153,6 +154,7 @@ void *Ensstat(void *argument)
cdoOperatorAdd("ensvar", func_var, 0, NULL);
cdoOperatorAdd("ensvar1", func_var1, 0, NULL);
cdoOperatorAdd("enspctl", func_pctl, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -78,9 +78,11 @@ void *Ensstat3(void *argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("ensroc", func_roc, 0, NULL);
cdoOperatorAdd("ensrkhist_space", func_rank, space_data, NULL);
cdoOperatorAdd("ensrkhist_time", func_rank, time_data, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -72,9 +72,12 @@ void *EOF3d(void * argument)
}
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("eof3d", EOF3D_, 0, NULL);
cdoOperatorAdd("eof3dtime", EOF3D_TIME, 0, NULL);
cdoOperatorAdd("eof3dspatial", EOF3D_SPATIAL, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -255,10 +255,12 @@ void *Expr(void *argument)
#define REPLACES_VARIABLES(id) cdoOperatorF1(id)
#define READS_COMMAND_LINE(id) cdoOperatorF2(id)
// clang-format off
cdoOperatorAdd("expr", 1, 1, "expressions");
cdoOperatorAdd("exprf", 1, 0, "expr script filename");
cdoOperatorAdd("aexpr", 0, 1, "expressions");
cdoOperatorAdd("aexprf", 0, 0, "expr script filename");
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -288,6 +288,7 @@ void *Filedes(void *argument)
{
cdoInitialize(argument);
// clang-format off
int GRIDDES = cdoOperatorAdd("griddes", 0, 0, NULL);
int GRIDDES2 = cdoOperatorAdd("griddes2", 0, 0, NULL);
int ZAXISDES = cdoOperatorAdd("zaxisdes", 0, 0, NULL);
......@@ -299,6 +300,7 @@ void *Filedes(void *argument)
int SPARTAB = cdoOperatorAdd("spartab", 0, 0, NULL);
int PARTAB = cdoOperatorAdd("partab", 0, 0, NULL);
int PARTAB2 = cdoOperatorAdd("partab2", 0, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -424,10 +424,12 @@ void *Fillmiss(void *argument)
cdoInitialize(argument);
// clang-format off
int FILLMISS = cdoOperatorAdd("fillmiss" , 0, 0, "nfill");
int FILLMISSONESTEP = cdoOperatorAdd("fillmiss2" , 0, 0, "nfill");
int SETMISSTONN = cdoOperatorAdd("setmisstonn" , 0, 0, "");
int SETMISSTODIS = cdoOperatorAdd("setmisstodis" , 0, 0, "number of neighbors");
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -149,7 +149,7 @@ void *Filter(void *argument)
cdoOperatorAdd("bandpass", BANDPASS, 0, NULL);
cdoOperatorAdd("highpass", HIGHPASS, 0, NULL);
cdoOperatorAdd("lowpass" , LOWPASS, 0, NULL);
cdoOperatorAdd("lowpass", LOWPASS, 0, NULL);
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
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