76 if (argc>1&&strcmp(argv[1],
"-help")) cout << endl <<
"Get statistics for " << argv[1] << endl;
80 for (
int i = 2;
i<argc;
i++) {
81 if (!strcmp(argv[
i],
"-stattype")) {
82 if (!strcmp(argv[
i+1],
"XYZ")) T =
XYZ;
83 else if (!strcmp(argv[
i+1],
"XY")) T =
XY;
84 else if (!strcmp(argv[
i+1],
"XZ")) T =
XZ;
85 else if (!strcmp(argv[
i+1],
"YZ")) T =
YZ;
86 else if (!strcmp(argv[
i+1],
"X")) T =
X;
87 else if (!strcmp(argv[
i+1],
"Y")) T =
Y;
88 else if (!strcmp(argv[
i+1],
"Z")) T =
Z;
89 else {cerr <<
"stattype unknown" << endl; exit(-1);}
93 cout <<
"averaging in z-direction" << endl;
95 stats.setDoPeriodicWalls(
false);
96 stats.getLiveStatistics();
98 cout <<
"averaging in y-direction" << endl;
100 stats.setDoPeriodicWalls(
false);
101 stats.getLiveStatistics();
103 cout <<
"averaging in x-direction" << endl;
105 stats.setDoPeriodicWalls(
false);
106 stats.getLiveStatistics();
108 cout <<
"averaging in yz-direction" << endl;
110 stats.setDoPeriodicWalls(
false);
111 stats.getLiveStatistics();
113 cout <<
"averaging in xz-direction" << endl;
115 stats.setDoPeriodicWalls(
false);
116 stats.getLiveStatistics();
118 cout <<
"averaging in xy-direction" << endl;
120 stats.setDoPeriodicWalls(
false);
121 stats.getLiveStatistics();
124 stats.setDoPeriodicWalls(
false);
125 stats.getLiveStatistics();
StatType
Creates averaged statistics (only valid if density field is homogenous along averaged direction)
Definition: StatisticsVector.h:41
@ XY
Definition: StatisticsVector.h:42
@ XZ
Definition: StatisticsVector.h:42
@ YZ
Definition: StatisticsVector.h:42
@ Y
Definition: StatisticsVector.h:42
@ X
Definition: StatisticsVector.h:42
@ Z
Definition: StatisticsVector.h:42
@ XYZ
Definition: StatisticsVector.h:42
Definition: livestatistics.cpp:30
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51