41 double sum = 0.0, mean;
49 for (c = 0; c <
lnc; c++) {
59 MPI_Allreduce(&sum, &mean, 1, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
61 MPI_MAX, MPI_COMM_WORLD);
63 MPI_MIN, MPI_COMM_WORLD);
71 for (c = 0; c <
lnc; c++)
81 printf(
"%12s%10.4lf%10.4lf%10.4lf%10.4lf\n",
"Density ",
94 MPI_MIN, MPI_COMM_WORLD);
99 printf(
"%12s%10.4lf%10s%10s%10s\n",
"Distance ", globalMinDist,
"-",
113 printf(
"%12s%10.4lf%10.4lf%10s%10s\n",
"Velocity ",
globalMinVel,
122 double globalMaxSize, globalMinSize;
130 printf(
"%12s%10.4lf%10.4lf%10s%10s\n",
"Size ", globalMinSize,
131 globalMaxSize,
"-",
"-");
140 printf(
"%12s%12s%12s%12s%12s%12s\n",
"Cell phase ",
"G0",
"G1",
"S",
142 printf(
"%12s%12" PRId64
"%12" PRId64
"%12" PRId64
"%12" PRId64
"%12"
144 printf(
"\n%16s%12" PRId64
"\n",
"Healthy cells ",
nc -
cnc -
nnc);
145 printf(
"%16s%12" PRId64
"\n",
"Cancer cells ",
cnc);
146 printf(
"%16s%12" PRId64
"\n",
"Necrotic cells ",
nnc);
156 printf(
"%12s%10s%10s%10s%10s\n",
"",
"Min",
"Max",
"Avg",
"Dev");
contains the most important global variables, arrays and defines
void statisticsVelocity()
void statisticsDistance()
struct statisticsData statistics