Home
last modified time | relevance | path

Searched refs:gwtot (Results 1 – 3 of 3) sorted by relevance

/petsc/src/ts/tutorials/hamiltonian/
H A Dex3.c683 PetscReal wtot[2] = {pwtot, xwtot}, gwtot[2]; in InitializeWeights() local
686 PetscCallMPI(MPIU_Allreduce(wtot, gwtot, 2, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD)); in InitializeWeights()
687 …m, "particle weight sum = %1.10f cell weight sum = %1.10f\n", (double)gwtot[0], (double)gwtot[1])); in InitializeWeights()
H A Dex2.c1368 PetscReal wtot[2] = {pwtot, xwtot}, gwtot[2]; in InitializeWeights() local
1371 PetscCallMPI(MPIU_Allreduce(wtot, gwtot, 2, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD)); in InitializeWeights()
1372 …m, "particle weight sum = %1.10f cell weight sum = %1.10f\n", (double)gwtot[0], (double)gwtot[1])); in InitializeWeights()
H A Dex4.c1982 PetscReal wtot[2] = {pwtot, xwtot}, gwtot[2]; in InitializeWeights() local
1985 PetscCallMPI(MPIU_Allreduce(wtot, gwtot, 2, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD)); in InitializeWeights()
1986 …m, "particle weight sum = %1.10f cell weight sum = %1.10f\n", (double)gwtot[0], (double)gwtot[1])); in InitializeWeights()