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

Added clang-format switches.

parent 03a395ea
......@@ -92,6 +92,7 @@ void *Fldstat(void *argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("fldrange", func_range, 0, NULL);
cdoOperatorAdd("fldmin", func_min, 0, NULL);
cdoOperatorAdd("fldmax", func_max, 0, NULL);
......@@ -103,6 +104,7 @@ void *Fldstat(void *argument)
cdoOperatorAdd("fldvar", func_varw, 1, NULL);
cdoOperatorAdd("fldvar1", func_var1w, 1, NULL);
cdoOperatorAdd("fldpctl", func_pctl, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -102,8 +102,10 @@ void *Fldstat2(void *argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("fldcor", func_cor, 0, NULL);
cdoOperatorAdd("fldcovar", func_covar, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -977,8 +977,10 @@ void *Gradsdes(void *argument)
cdoInitialize(argument);
// clang-format off
int GRADSDES = cdoOperatorAdd("gradsdes", 0, 0, NULL);
int DUMPMAP = cdoOperatorAdd("dumpmap", 0, 0, NULL);
// clang-format on
UNUSED(GRADSDES);
......
......@@ -552,6 +552,7 @@ void *Gridboxstat(void *argument)
int xinc = parameter2int(operatorArgv()[0]);
int yinc = parameter2int(operatorArgv()[1]);
// clang-format off
cdoOperatorAdd("gridboxrange", func_range, 0, NULL);
cdoOperatorAdd("gridboxmin", func_min, 0, NULL);
cdoOperatorAdd("gridboxmax", func_max, 0, NULL);
......@@ -562,6 +563,7 @@ void *Gridboxstat(void *argument)
cdoOperatorAdd("gridboxvar1", func_var1w, 1, NULL);
cdoOperatorAdd("gridboxstd", func_stdw, 1, NULL);
cdoOperatorAdd("gridboxstd1", func_std1w, 1, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -88,11 +88,13 @@ void *Gridcell(void *argument)
cdoInitialize(argument);
// clang-format off
int GRIDAREA = cdoOperatorAdd("gridarea", 1, 0, NULL);
int GRIDWGTS = cdoOperatorAdd("gridweights", 1, 0, NULL);
int GRIDMASK = cdoOperatorAdd("gridmask", 0, 0, NULL);
int GRIDDX = cdoOperatorAdd("griddx", 1, 0, NULL);
int GRIDDY = cdoOperatorAdd("griddy", 1, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -239,8 +239,10 @@ void *Gridsearch(void *argument)
{
cdoInitialize(argument);
// clang-format off
int PSEARCH = cdoOperatorAdd("testpointsearch", 0, 0, NULL);
int CSEARCH = cdoOperatorAdd("testcellsearch", 0, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -37,10 +37,12 @@ void *Histogram(void *argument)
cdoInitialize(argument);
// clang-format off
int HISTCOUNT = cdoOperatorAdd("histcount", 0, 0, NULL);
int HISTSUM = cdoOperatorAdd("histsum", 0, 0, NULL);
int HISTMEAN = cdoOperatorAdd("histmean", 0, 0, NULL);
int HISTFREQ = cdoOperatorAdd("histfreq", 0, 0, NULL);
// clang-format on
UNUSED(HISTSUM);
......
......@@ -271,12 +271,14 @@ void *Info(void *argument)
cdoInitialize(argument);
// clang-format off
int INFO = cdoOperatorAdd("info", E_PARAM, 0, NULL);
int INFOP = cdoOperatorAdd("infop", E_PARAM, 0, NULL);
int INFON = cdoOperatorAdd("infon", E_NAME, 0, NULL);
int INFOC = cdoOperatorAdd("infoc", E_CODE, 0, NULL);
int XINFON = cdoOperatorAdd("xinfon", E_NAME, 0, NULL);
int MAP = cdoOperatorAdd("map", E_PARAM, 0, NULL);
// clang-format on
UNUSED(INFO);
UNUSED(INFOP);
......
......@@ -66,9 +66,11 @@ void *Input(void *argument)
cdoInitialize(argument);
// clang-format off
int INPUT = cdoOperatorAdd("input", 0, 0, NULL);
int INPUTSRV = cdoOperatorAdd("inputsrv", 0, 0, NULL);
int INPUTEXT = cdoOperatorAdd("inputext", 0, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -294,11 +294,13 @@ void *Intgrid(void *argument)
cdoInitialize(argument);
// clang-format off
int INTGRIDBIL = cdoOperatorAdd("intgridbil", 0, 0, NULL);
int INTPOINT = cdoOperatorAdd("intpoint", 0, 0, NULL);
int INTERPOLATE = cdoOperatorAdd("interpolate", 0, 0, NULL);
int BOXAVG = cdoOperatorAdd("boxavg", 0, 0, NULL);
int THINOUT = cdoOperatorAdd("thinout", 0, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -168,8 +168,10 @@ void *Intlevel(void *argument)
cdoInitialize(argument);
// clang-format off
int INTLEVEL = cdoOperatorAdd("intlevel", 0, 0, NULL);
int INTLEVELX = cdoOperatorAdd("intlevelx", 0, 0, NULL);
// clang-format on
UNUSED(INTLEVEL);
......
......@@ -58,8 +58,10 @@ void *Intlevel3d(void *argument)
cdoInitialize(argument);
// clang-format off
int INTLEVEL3D = cdoOperatorAdd("intlevel3d", 0, 0, NULL);
int INTLEVELX3D = cdoOperatorAdd("intlevelx3d", 0, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -287,12 +287,14 @@ void *Invert(void *argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("invertlat", func_all, func_lat, NULL);
cdoOperatorAdd("invertlon", func_all, func_lon, NULL);
cdoOperatorAdd("invertlatdes", func_hrd, func_lat, NULL);
cdoOperatorAdd("invertlondes", func_hrd, func_lon, NULL);
cdoOperatorAdd("invertlatdata", func_fld, func_lat, NULL);
cdoOperatorAdd("invertlondata", func_fld, func_lon, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc1 = cdoOperatorF1(operatorID);
......
......@@ -28,6 +28,7 @@ void *Log(void *argument)
{
cdoInitialize(argument);
// clang-format off
int DUMPLOGS = cdoOperatorAdd("dumplogs", 0, 0, NULL);
int DAYLOGS = cdoOperatorAdd("daylogs", 0, 0, NULL);
int MONLOGS = cdoOperatorAdd("monlogs", 0, 0, NULL);
......@@ -37,6 +38,7 @@ void *Log(void *argument)
cdoOperatorAdd("smemlogo", 1, 3, NULL);
cdoOperatorAdd("stimelogo", 1, 4, NULL);
cdoOperatorAdd("sperclogo", 1, 5, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -280,9 +280,11 @@ void *Maskbox(void *argument)
cdoInitialize(argument);
// clang-format off
int MASKLONLATBOX = cdoOperatorAdd("masklonlatbox", 0, 0, "western and eastern longitude and southern and northern latitude");
int MASKINDEXBOX = cdoOperatorAdd("maskindexbox", 0, 0, "index of first and last longitude and index of first and last latitude");
int MASKREGION = cdoOperatorAdd("maskregion", 0, 0, "limiting coordinates of the region");
// clang-format on
int operatorID = cdoOperatorID();
......
......@@ -51,6 +51,7 @@ void *Math(void *argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("abs", ABS, 0, NULL);
cdoOperatorAdd("int", FINT, 0, NULL);
cdoOperatorAdd("nint", FNINT, 0, NULL);
......@@ -67,6 +68,7 @@ void *Math(void *argument)
cdoOperatorAdd("atan", ATAN, 0, NULL);
cdoOperatorAdd("pow", POW, 0, NULL);
cdoOperatorAdd("reci", RECI, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -51,6 +51,7 @@ void *Merstat(void *argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("merrange", func_range, 0, NULL);
cdoOperatorAdd("mermin", func_min, 0, NULL);
cdoOperatorAdd("mermax", func_max, 0, NULL);
......@@ -62,7 +63,8 @@ void *Merstat(void *argument)
cdoOperatorAdd("merstd", func_stdw, 1, NULL);
cdoOperatorAdd("merstd1", func_std1w, 1, NULL);
cdoOperatorAdd("merpctl", func_pctl, 0, NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
bool needWeights = cdoOperatorF2(operatorID) != 0;
......
......@@ -44,6 +44,7 @@ void *Ninfo(void *argument)
cdoInitialize(argument);
// clang-format off
cdoOperatorAdd("nyear" , NYEAR , 0 , NULL);
cdoOperatorAdd("nmon" , NMON , 0 , NULL);
cdoOperatorAdd("ndate" , NDATE , 0 , NULL);
......@@ -52,6 +53,7 @@ void *Ninfo(void *argument)
cdoOperatorAdd("nlevel" , NLEVEL , 0 , NULL);
cdoOperatorAdd("ngridpoints" , NGRIDPOINTS , 0 , NULL);
cdoOperatorAdd("ngrids" , NGRIDS , 0 , NULL);
// clang-format on
int operatorID = cdoOperatorID();
int operfunc = cdoOperatorF1(operatorID);
......
......@@ -52,6 +52,8 @@ void *Output(void *argument)
int year, month, day;
int *keys = NULL, nkeys = 0, k;
int nKeys;
// clang-format off
int Keylen[] = { 0, 8, 11, 4, 8, 6, 6, 6, 6, 4, 4, 6, 10, 8, 5, 2, 2 };
enum {knohead, kvalue, kparam, kcode, kname, klon, klat, klev, kbin, kxind, kyind, ktimestep, kdate, ktime, kyear, kmonth, kday };
const char *Keynames[] = {"nohead", "value", "param", "code", "name", "lon", "lat", "lev", "bin", "xind", "yind", "timestep", "date", "time", "year", "month", "day"};
......@@ -69,6 +71,7 @@ void *Output(void *argument)
int OUTPUTARR = cdoOperatorAdd("outputarr", 0, 0, NULL);
int OUTPUTXYZ = cdoOperatorAdd("outputxyz", 0, 0, NULL);
int OUTPUTTAB = cdoOperatorAdd("outputtab", 0, 0, NULL);
// clang-format on
UNUSED(OUTPUT);
......
......@@ -220,6 +220,7 @@ void *Outputgmt(void *argument)
cdoInitialize(argument);
// clang-format off
int OUTPUTCENTER = cdoOperatorAdd("gmtxyz", 0, 0, NULL);
int OUTPUTCENTER2 = cdoOperatorAdd("outputcenter2", 0, 0, NULL);
int OUTPUTCENTERCPT = cdoOperatorAdd("outputcentercpt", 0, 0, NULL);
......@@ -228,6 +229,7 @@ void *Outputgmt(void *argument)
int OUTPUTVECTOR = cdoOperatorAdd("outputvector", 0, 0, NULL);
int OUTPUTTRI = cdoOperatorAdd("outputtri", 0, 0, NULL);
int OUTPUTVRML = cdoOperatorAdd("outputvrml", 0, 0, NULL);
// clang-format on
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