41 double& _surface_energy,
double& _pressure_work)
44 double const elastic_energy = _elastic_energy;
45 MPI_Allreduce(&elastic_energy, &_elastic_energy, 1, MPI_DOUBLE, MPI_SUM,
47 double const surface_energy = _surface_energy;
48 MPI_Allreduce(&surface_energy, &_surface_energy, 1, MPI_DOUBLE, MPI_SUM,
50 double const pressure_work = _pressure_work;
51 MPI_Allreduce(&pressure_work, &_pressure_work, 1, MPI_DOUBLE, MPI_SUM,
55 INFO(
"Elastic energy: {} Surface energy: {} Pressure work: {} at time: {} ",
56 _elastic_energy, _surface_energy, _pressure_work, t);