#include "scr/Chute.h"
#include "scr/StatisticsVector.h"
◆ main()
173 for (
int i = 2;
i<argc;
i++) {
174 if (!strcmp(argv[
i],
"-stattype")) {
175 if (!strcmp(argv[
i+1],
"XYZ"))
T =
XYZ;
176 else if (!strcmp(argv[
i+1],
"XY"))
T =
XY;
177 else if (!strcmp(argv[
i+1],
"XZ"))
T =
XZ;
178 else if (!strcmp(argv[
i+1],
"YZ"))
T =
YZ;
179 else if (!strcmp(argv[
i+1],
"X"))
T =
X;
180 else if (!strcmp(argv[
i+1],
"Y"))
T =
Y;
181 else if (!strcmp(argv[
i+1],
"Z"))
T =
Z;
182 else if (!strcmp(argv[
i+1],
"O"))
T =
O;
183 else {cerr <<
"stattype unknown" << endl; exit(-1);}
187 cout <<
"averaging in z-direction" << endl;
189 stats.
run(argc, argv);
191 cout <<
"averaging in y-direction" << endl;
193 stats.
run(argc, argv);
195 cout <<
"averaging in x-direction" << endl;
197 stats.
run(argc, argv);
199 cout <<
"averaging in yz-direction" << endl;
201 stats.
run(argc, argv);
203 cout <<
"averaging in xz-direction" << endl;
205 stats.
run(argc, argv);
207 cout <<
"averaging in xy-direction" << endl;
209 stats.
run(argc, argv);
211 cout <<
"no averaging" << endl;
213 stats.
run(argc, argv);
int i
Definition: BiCGSTAB_step_by_step.cpp:9
StatType
Creates averaged statistics (only valid if density field is homogenous along averaged direction)
Definition: StatisticsVector.h:20
@ XY
Definition: StatisticsVector.h:21
@ XZ
Definition: StatisticsVector.h:21
@ YZ
Definition: StatisticsVector.h:21
@ XYZ
Definition: StatisticsVector.h:21
@ O
Definition: StatisticsVector.h:21
void run(int argc, char *argv[])
Definition: obsolete_codes/statistics_while_running.cpp:15
#define X
Definition: icosphere.cpp:20
#define Z
Definition: icosphere.cpp:21
const char Y
Definition: test/EulerAngles.cpp:32