Searched refs:global_weight (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex3.c | 708 …scReal *weight, totalCharge = 0., totalWeight = 0., gmin[3], gmax[3], global_charge, global_weight; in InitializeConstants() local 742 …PetscCallMPI(MPIU_Allreduce(&totalWeight, &global_weight, 1, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD… in InitializeConstants() 744 …[species[0]] = %f\ttotalCharge = %f, Total Area = %f\n", dim, (double)global_weight, (double)user-… in InitializeConstants()
|
| H A D | ex2.c | 1393 …scReal *weight, totalCharge = 0., totalWeight = 0., gmin[3], gmax[3], global_charge, global_weight; in InitializeConstants() local 1427 …PetscCallMPI(MPIU_Allreduce(&totalWeight, &global_weight, 1, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD… in InitializeConstants() 1429 …[species[0]] = %f\ttotalCharge = %f, Total Area = %f\n", dim, (double)global_weight, (double)ctx->… in InitializeConstants()
|
| H A D | ex4.c | 2007 …scReal *weight, totalCharge = 0., totalWeight = 0., gmin[3], gmax[3], global_charge, global_weight; in InitializeConstants() local 2041 …PetscCallMPI(MPIU_Allreduce(&totalWeight, &global_weight, 1, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD… in InitializeConstants() 2043 …[species[0]] = %f\ttotalCharge = %f, Total Area = %f\n", dim, (double)global_weight, (double)ctx->… in InitializeConstants()
|