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.
40 if (argc > 1 && strcmp(argv[1],
"-help"))
41 logger(
INFO,
"\nGet statistics for %", argv[1]);
45 for (
unsigned int i = 2;
i < argc;
i++)
47 if (!strcmp(argv[
i],
"-stattype") || !strcmp(argv[
i],
"-statType"))
49 if (!strcmp(argv[
i + 1],
"XYZ"))
51 else if (!strcmp(argv[
i + 1],
"RAZ"))
53 else if (!strcmp(argv[
i + 1],
"RA"))
55 else if (!strcmp(argv[
i + 1],
"RZ"))
57 else if (!strcmp(argv[
i + 1],
"AZ"))
59 else if (!strcmp(argv[
i + 1],
"R"))
61 else if (!strcmp(argv[
i + 1],
"A"))
63 else if (!strcmp(argv[
i + 1],
"XY"))
65 else if (!strcmp(argv[
i + 1],
"XZ"))
67 else if (!strcmp(argv[
i + 1],
"YZ"))
69 else if (!strcmp(argv[
i + 1],
"X"))
71 else if (!strcmp(argv[
i + 1],
"Y"))
73 else if (!strcmp(argv[
i + 1],
"Z"))
75 else if (!strcmp(argv[
i + 1],
"O"))
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.setDoPeriodicWalls(
false);
116 stats.statistics_from_fstat_and_data();
122 stats.setDoPeriodicWalls(
false);
123 stats.statistics_from_fstat_and_data();
129 stats.setDoPeriodicWalls(
false);
130 stats.statistics_from_fstat_and_data();
136 stats.statistics_from_fstat_and_data();
142 stats.statistics_from_fstat_and_data();
148 stats.statistics_from_fstat_and_data();
154 stats.statistics_from_fstat_and_data();
160 stats.statistics_from_fstat_and_data();
166 stats.statistics_from_fstat_and_data();
172 stats.statistics_from_fstat_and_data();
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
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:53
StatType
Creates averaged statistics (only valid if density field is homogenous along averaged direction)
Definition: StatisticsVector.h:41
@ AZ
Definition: StatisticsVector.h:42
@ XY
Definition: StatisticsVector.h:42
@ XZ
Definition: StatisticsVector.h:42
@ R
Definition: StatisticsVector.h:42
@ RA
Definition: StatisticsVector.h:42
@ YZ
Definition: StatisticsVector.h:42
@ A
Definition: StatisticsVector.h:42
@ Y
Definition: StatisticsVector.h:42
@ X
Definition: StatisticsVector.h:42
@ Z
Definition: StatisticsVector.h:42
@ XYZ
Definition: StatisticsVector.h:42
@ RAZ
Definition: StatisticsVector.h:42
@ RZ
Definition: StatisticsVector.h:42
@ O
Definition: StatisticsVector.h:42
This class is used to extract statistical data from MD simulations.
Definition: StatisticsVector.h:62
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51