Searched refs:totE (Results 1 – 1 of 1) sorted by relevance
1842 PetscReal m = 1.0, totE = 0., totMom[3] = {0., 0., 0.}; in TSDMSwarmMonitorMoments() local1858 totE += PetscRealPart(u[p * dim + d] * u[p * dim + d]); in TSDMSwarmMonitorMoments()1864 totE *= 0.5 * m; in TSDMSwarmMonitorMoments()1865 PetscCall(PetscPrintf(comm, "Step %4" PetscInt_FMT " Total Energy: %10.8lf", step, (double)totE)); in TSDMSwarmMonitorMoments()