Searched refs:global_charge (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex3.c | 708 …PetscReal *weight, totalCharge = 0., totalWeight = 0., gmin[3], gmax[3], global_charge, global_wei… in InitializeConstants() local 743 …PetscCallMPI(MPIU_Allreduce(&totalCharge, &global_charge, 1, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD… in InitializeConstants() 744 … %f\n", dim, (double)global_weight, (double)user->charges[0], (double)global_charge, (double)Area)… in InitializeConstants() 745 param->sigma = PetscAbsReal(global_charge / (Area)); in InitializeConstants()
|
| H A D | ex2.c | 1393 …PetscReal *weight, totalCharge = 0., totalWeight = 0., gmin[3], gmax[3], global_charge, global_wei… in InitializeConstants() local 1428 …PetscCallMPI(MPIU_Allreduce(&totalCharge, &global_charge, 1, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD… in InitializeConstants() 1429 …= %f\n", dim, (double)global_weight, (double)ctx->charges[0], (double)global_charge, (double)Area)… in InitializeConstants() 1430 param->sigma = PetscAbsReal(global_charge / (Area)); in InitializeConstants()
|
| H A D | ex4.c | 2007 …PetscReal *weight, totalCharge = 0., totalWeight = 0., gmin[3], gmax[3], global_charge, global_wei… in InitializeConstants() local 2042 …PetscCallMPI(MPIU_Allreduce(&totalCharge, &global_charge, 1, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD… in InitializeConstants() 2043 …= %f\n", dim, (double)global_weight, (double)ctx->charges[0], (double)global_charge, (double)Area)… in InitializeConstants() 2044 param->sigma = PetscAbsReal(global_charge / (Area)); in InitializeConstants()
|