Home
last modified time | relevance | path

Searched refs:totalWeight (Results 1 – 22 of 22) sorted by relevance

/petsc/src/snes/tests/output/
H A Dex15_particle_hdiv_5.out3 dim = 2 totalWeight = 1.000000 totalCharge = -1.000000, Total Area = 12.566371
/petsc/src/ts/tutorials/hamiltonian/output/
H A Dex3_landau_damping_2d.out1 dim = 2 totalWeight = 12.566400, user->charges[species[0]] = -1.000000 totalCharge = -12.566400, To…
H A Dex2_coulomb_1d.out1 dim = 1 totalWeight = 1.000000, ctx->charges[species[0]] = -1.000000 totalCharge = -1.000000, Total…
H A Dex3_landau_damping_1d.out1 dim = 1 totalWeight = 12.566400, user->charges[species[0]] = -1.000000 totalCharge = -12.566400, To…
H A Dex2_none_1d.out1 dim = 1 totalWeight = 1.000000, ctx->charges[species[0]] = -1.000000 totalCharge = -1.000000, Total…
H A Dex3_landau_damping_3d.out1 dim = 3 totalWeight = 50.265601, user->charges[species[0]] = -1.000000 totalCharge = -50.265601, To…
H A Dex4_landau_damping_1d_bs.out1 dim = 1 totalWeight = 12.566400, ctx->charges[species[0]] = -1.000000 totalCharge = -12.566400, Tot…
H A Dex4_landau_damping_1d_dg.out1 dim = 1 totalWeight = 12.566400, ctx->charges[species[0]] = -1.000000 totalCharge = -12.566400, Tot…
H A Dex3_sphere_3d.out7 dim = 3 totalWeight = 50.463507, user->charges[species[0]] = -1.000000 totalCharge = -50.463507, To…
H A Dex2_uniform_primal_1d_real.out15 dim = 1 totalWeight = 12.566400, ctx->charges[species[0]] = -1.000000 totalCharge = -12.566400, Tot…
H A Dex2_landau_damping_1d_dg.out15 dim = 1 totalWeight = 12.566400, ctx->charges[species[0]] = -1.000000 totalCharge = -12.566400, Tot…
H A Dex2_landau_damping_1d_c0.out15 dim = 1 totalWeight = 12.566400, ctx->charges[species[0]] = -1.000000 totalCharge = -12.566400, Tot…
H A Dex2_landau_damping_1d_mixed.out15 dim = 1 totalWeight = 12.566400, ctx->charges[species[0]] = -1.000000 totalCharge = -12.566400, Tot…
H A Dex2_uniform_equilibrium_1d_real.out15 dim = 1 totalWeight = 12.566400, ctx->charges[species[0]] = -1.000000 totalCharge = -12.566400, Tot…
H A Dex2_uniform_equilibrium_1d.out15 dim = 1 totalWeight = 12.566400, ctx->charges[species[0]] = -1.000000 totalCharge = -12.566400, Tot…
H A Dex2_uniform_primal_1d_real_pfak.out15 dim = 1 totalWeight = 12.566400, ctx->charges[species[0]] = -1.000000 totalCharge = -12.566400, Tot…
H A Dex2_two_stream_rt.out41 dim = 1 totalWeight = 12.532474, ctx->charges[species[0]] = -1.000000 totalCharge = -12.532474, Tot…
H A Dex2_two_stream_c0.out41 dim = 1 totalWeight = 12.532474, ctx->charges[species[0]] = -1.000000 totalCharge = -12.532474, Tot…
/petsc/src/snes/tests/
H A Dex15.c397 PetscReal *weight, totalCharge, totalWeight = 0., gmin[3], gmax[3]; in InitializeConstants() local
406 for (p = 0; p < Np; ++p) totalWeight += weight[p]; in InitializeConstants()
407 totalCharge = -1.0 * totalWeight; in InitializeConstants()
427 …\ttotalWeight = %f\ttotalCharge = %f, Total Area = %f\n", dim, (double)totalWeight, (double)totalC… in InitializeConstants()
/petsc/src/ts/tutorials/hamiltonian/
H A Dex3.c72 PetscReal totalWeight; member
111 options->totalWeight = 1.0; in ProcessOptions()
135 …eight", "Total weight of all particles", "ex3.c", options->totalWeight, &options->totalWeight, NUL… in ProcessOptions()
577 static PetscErrorCode InitializeWeights(DM sw, PetscReal totalWeight, PetscProbFn *func, const Pets… in InitializeWeights() argument
669 weight[p] = totalWeight * vw * xw; in InitializeWeights()
671 …" weight exceeded 10: weight=%g, xw=%g, vw=%g, totalWeight=%g", p, weight[p], xw, vw, totalWeight); in InitializeWeights()
700 …PetscCall(InitializeWeights(sw, user->totalWeight, dim == 1 ? PetscPDFCosine1D : (dim == 2 ? Petsc… in InitializeParticles_PerturbedWeights()
708 …PetscReal *weight, totalCharge = 0., totalWeight = 0., gmin[3], gmax[3], global_charge, global_wei… in InitializeConstants() local
719 totalWeight += weight[p]; in InitializeConstants()
742 …PetscCallMPI(MPIU_Allreduce(&totalWeight, &global_weight, 1, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD… in InitializeConstants()
H A Dex2.c130 PetscReal totalWeight; member
188 options->totalWeight = 1.0; in ProcessOptions()
231 …eight", "Total weight of all particles", "ex2.c", options->totalWeight, &options->totalWeight, NUL… in ProcessOptions()
1274 static PetscErrorCode InitializeWeights(DM sw, PetscReal totalWeight, PetscProbFn *func, const Pets… in InitializeWeights() argument
1354 weight[p] = totalWeight * vw * xw; in InitializeWeights()
1356 …ERR_ARG_WRONG, "Particle %" PetscInt_FMT " weight exceeded 1: %g, %g, %g", p, xw, vw, totalWeight); in InitializeWeights()
1385 …PetscCall(InitializeWeights(sw, ctx->totalWeight, dim == 1 ? PetscPDFCosine1D : PetscPDFCosine2D, … in InitializeParticles_PerturbedWeights()
1393 …PetscReal *weight, totalCharge = 0., totalWeight = 0., gmin[3], gmax[3], global_charge, global_wei… in InitializeConstants() local
1404 totalWeight += weight[p]; in InitializeConstants()
1427 …PetscCallMPI(MPIU_Allreduce(&totalWeight, &global_weight, 1, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD… in InitializeConstants()
H A Dex4.c168 PetscReal totalWeight; member
248 options->totalWeight = 1.0; in ProcessOptions()
310 …ight", "Total weight of all particles", __FILE__, options->totalWeight, &options->totalWeight, NUL… in ProcessOptions()
1888 static PetscErrorCode InitializeWeights(DM sw, PetscReal totalWeight, PetscProbFn *func, const Pets… in InitializeWeights() argument
1968 weight[p] = totalWeight * vw * xw; in InitializeWeights()
1970 …ERR_ARG_WRONG, "Particle %" PetscInt_FMT " weight exceeded 1: %g, %g, %g", p, xw, vw, totalWeight); in InitializeWeights()
1999 …PetscCall(InitializeWeights(sw, ctx->totalWeight, dim == 1 ? PetscPDFCosine1D : PetscPDFCosine2D, … in InitializeParticles_PerturbedWeights()
2007 …PetscReal *weight, totalCharge = 0., totalWeight = 0., gmin[3], gmax[3], global_charge, global_wei… in InitializeConstants() local
2018 totalWeight += weight[p]; in InitializeConstants()
2041 …PetscCallMPI(MPIU_Allreduce(&totalWeight, &global_weight, 1, MPIU_REAL, MPIU_SUM, PETSC_COMM_WORLD… in InitializeConstants()