Searched refs:totMom (Results 1 – 1 of 1) sorted by relevance
1842 PetscReal m = 1.0, totE = 0., totMom[3] = {0., 0., 0.}; in TSDMSwarmMonitorMoments() local1859 totMom[d] += PetscRealPart(u[p * dim + d]); in TSDMSwarmMonitorMoments()1863 for (d = 0; d < dim; ++d) totMom[d] *= m; in TSDMSwarmMonitorMoments()1866 …PetscCall(PetscPrintf(comm, " Total Momentum %c: %10.8lf", (char)('x' + d), (double)totMom[d])); in TSDMSwarmMonitorMoments()