55 if (argc>1&&strcmp(argv[1],
"-help")) cout << endl <<
"Get statistics for " << argv[1] << endl;
59 for (
int i = 2;
i<argc;
i++) {
60 if (!strcmp(argv[
i],
"-stattype")) {
61 if (!strcmp(argv[
i+1],
"XYZ"))
T =
XYZ;
62 else if (!strcmp(argv[
i+1],
"XY"))
T =
XY;
63 else if (!strcmp(argv[
i+1],
"XZ"))
T =
XZ;
64 else if (!strcmp(argv[
i+1],
"YZ"))
T =
YZ;
65 else if (!strcmp(argv[
i+1],
"X"))
T =
X;
66 else if (!strcmp(argv[
i+1],
"Y"))
T =
Y;
67 else if (!strcmp(argv[
i+1],
"Z"))
T =
Z;
68 else {cerr <<
"stattype unknown" << endl; exit(-1);}
72 cout <<
"averaging in z-direction" << endl;
74 stats.setDoPeriodicWalls(
false);
75 stats.getLiveStatistics();
77 cout <<
"averaging in y-direction" << endl;
79 stats.setDoPeriodicWalls(
false);
80 stats.getLiveStatistics();
82 cout <<
"averaging in x-direction" << endl;
84 stats.setDoPeriodicWalls(
false);
85 stats.getLiveStatistics();
87 cout <<
"averaging in yz-direction" << endl;
89 stats.setDoPeriodicWalls(
false);
90 stats.getLiveStatistics();
92 cout <<
"averaging in xz-direction" << endl;
94 stats.setDoPeriodicWalls(
false);
95 stats.getLiveStatistics();
97 cout <<
"averaging in xy-direction" << endl;
99 stats.setDoPeriodicWalls(
false);
100 stats.getLiveStatistics();
103 stats.setDoPeriodicWalls(
false);
104 stats.getLiveStatistics();
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
Definition: livestatistics.cpp:9
#define X
Definition: icosphere.cpp:20
#define Z
Definition: icosphere.cpp:21
const char Y
Definition: test/EulerAngles.cpp:32