This is the function that the user should call for statistics (CG).
This function offers an interface to the templated class StatisticsVector. It picks the correct StatType template from the user-specified flag. The other flags are processed by StatisticsVector.
19 if (argc > 1 && strcmp(argv[1],
"-help"))
20 logger(
INFO,
"\nGet statistics for %", argv[1]);
24 for (
unsigned int i = 2;
i < argc;
i++)
26 if (!strcmp(argv[
i],
"-stattype") || !strcmp(argv[
i],
"-statType"))
28 if (!strcmp(argv[
i + 1],
"XYZ"))
30 else if (!strcmp(argv[
i + 1],
"RAZ"))
32 else if (!strcmp(argv[
i + 1],
"RA"))
34 else if (!strcmp(argv[
i + 1],
"RZ"))
36 else if (!strcmp(argv[
i + 1],
"AZ"))
38 else if (!strcmp(argv[
i + 1],
"R"))
40 else if (!strcmp(argv[
i + 1],
"A"))
42 else if (!strcmp(argv[
i + 1],
"XY"))
44 else if (!strcmp(argv[
i + 1],
"XZ"))
46 else if (!strcmp(argv[
i + 1],
"YZ"))
48 else if (!strcmp(argv[
i + 1],
"X"))
50 else if (!strcmp(argv[
i + 1],
"Y"))
52 else if (!strcmp(argv[
i + 1],
"Z"))
54 else if (!strcmp(argv[
i + 1],
"O"))
66 stats.setDoPeriodicWalls(
false);
67 stats.statistics_from_fstat_and_data();
73 stats.setDoPeriodicWalls(
false);
74 stats.statistics_from_fstat_and_data();
80 stats.setDoPeriodicWalls(
false);
81 stats.statistics_from_fstat_and_data();
87 stats.setDoPeriodicWalls(
false);
88 stats.statistics_from_fstat_and_data();
94 stats.setDoPeriodicWalls(
false);
95 stats.statistics_from_fstat_and_data();
101 stats.setDoPeriodicWalls(
false);
102 stats.statistics_from_fstat_and_data();
108 stats.setDoPeriodicWalls(
false);
109 stats.statistics_from_fstat_and_data();
115 stats.statistics_from_fstat_and_data();
121 stats.statistics_from_fstat_and_data();
127 stats.statistics_from_fstat_and_data();
133 stats.statistics_from_fstat_and_data();
139 stats.statistics_from_fstat_and_data();
145 stats.statistics_from_fstat_and_data();
151 stats.statistics_from_fstat_and_data();
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
LL< Log::ERROR > ERROR
Error log level.
Definition: Logger.cc:32
StatType
Creates averaged statistics (only valid if density field is homogenous along averaged direction)
Definition: StatisticsVector.h:20
@ AZ
Definition: StatisticsVector.h:21
@ XY
Definition: StatisticsVector.h:21
@ XZ
Definition: StatisticsVector.h:21
@ R
Definition: StatisticsVector.h:21
@ RA
Definition: StatisticsVector.h:21
@ YZ
Definition: StatisticsVector.h:21
@ XYZ
Definition: StatisticsVector.h:21
@ RAZ
Definition: StatisticsVector.h:21
@ RZ
Definition: StatisticsVector.h:21
@ O
Definition: StatisticsVector.h:21
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
The matrix class, also used for vectors and row-vectors.
Definition: Eigen/Eigen/src/Core/Matrix.h:186
This class is used to extract statistical data from MD simulations.
Definition: StatisticsVector.h:41
#define X
Definition: icosphere.cpp:20
#define Z
Definition: icosphere.cpp:21
#define INFO(i)
Definition: mumps_solver.h:54
const char Y
Definition: test/EulerAngles.cpp:32