Home
last modified time | relevance | path

Searched refs:pmoments (Results 1 – 5 of 5) sorted by relevance

/petsc/src/dm/impls/swarm/tests/
H A Dex11.c307 PetscReal pmoments[3]; // \int f, \int x f, \int r^2 f in TestParticlesToField() local
314 PetscCall(computeParticleMoments(sw, f, pmoments, user)); in TestParticlesToField()
322pmoments[m]) / fmoments[m]) > user->mtol) PetscCall(PetscPrintf(PetscObjectComm((PetscObject)dm), … in TestParticlesToField()
324pmoments[m]) / fmoments[m]) <= user->mtol, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONG, … in TestParticlesToField()
335 PetscReal pmoments[3]; // \int f, \int x f, \int r^2 f in TestFieldToParticles() local
342 PetscCall(computeParticleMoments(sw, f, pmoments, user)); in TestFieldToParticles()
348pmoments[m]) / fmoments[m]) > user->mtol) PetscCall(PetscPrintf(PetscObjectComm((PetscObject)dm), … in TestFieldToParticles()
350pmoments[m]) / fmoments[m]) <= user->mtol, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONG, … in TestFieldToParticles()
361 PetscReal pmoments[3]; // \int f, \int x f, \int r^2 f in TestParticlesToGradientField() local
368 PetscCall(computeParticleMoments(sw, f, pmoments, user)); in TestParticlesToGradientField()
H A Dex2.c400 PetscReal pmoments[3]; // \int f, \int x f, \int r^2 f in TestL2ProjectionParticlesToField() local
407 PetscCall(computeParticleMoments(sw, pmoments, user)); in TestL2ProjectionParticlesToField()
411pmoments[m]) / fmoments[m]) <= user->momentTol, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WR… in TestL2ProjectionParticlesToField()
421 PetscReal pmoments[3]; // \int f, \int x f, \int r^2 f in TestL2ProjectionFieldToParticles() local
428 PetscCall(computeParticleMoments(sw, pmoments, user)); in TestL2ProjectionFieldToParticles()
432pmoments[m]) / fmoments[m]) <= user->momentTol, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WR… in TestL2ProjectionFieldToParticles()
555 PetscReal pmoments[3]; /* \int f, \int x f, \int r^2 f */ in TestFieldGradientProjection() local
592 PetscCall(computeParticleMoments(sw, pmoments, user)); in TestFieldGradientProjection()
596pmoments[m]) / fmoments[m]) <= user->momentTol, comm, PETSC_ERR_ARG_WRONG, "Moment %" PetscInt_FMT… in TestFieldGradientProjection()
/petsc/src/ts/tutorials/hamiltonian/
H A Dex3.c229 PetscReal pmoments[16]; /* \int f, \int v f, \int v^2 f */ in MonitorEField() local
284 PetscCall(DMSwarmComputeMoments(sw, "velocity", "w_q", pmoments)); in MonitorEField()
285 …e)Emax, (double)lgEmax, (double)chargesum, (double)pmoments[0], (double)pmoments[1], (double)pmome… in MonitorEField()
293 PetscReal pmoments[16]; /* \int f, \int v f, \int v^2 f */ in MonitorMoments() local
299 PetscCall(DMSwarmComputeMoments(sw, "velocity", "w_q", pmoments)); in MonitorMoments()
301 …COMM_WORLD, "%f\t%f\t%f\t%f\n", (double)t, (double)pmoments[0], (double)pmoments[1], (double)pmome… in MonitorMoments()
H A Dex2.c519 PetscReal pmoments[4]; /* \int f, \int v f, \int v^2 f */ in MonitorEField() local
568 PetscCall(DMSwarmComputeMoments(sw, "velocity", "w_q", pmoments)); in MonitorEField()
569 …e)Emax, (double)lgEmax, (double)chargesum, (double)pmoments[0], (double)pmoments[1], (double)pmome… in MonitorEField()
578 PetscReal pmoments[4], fmoments[4]; /* \int f, \int v f, \int v^2 f */ in MonitorMoments() local
584 PetscCall(DMSwarmComputeMoments(sw, "velocity", "w_q", pmoments)); in MonitorMoments()
587 …"%f\t%f\t%f\t%f\t%f\t%f\t%f\n", (double)t, (double)pmoments[0], (double)pmoments[1], (double)pmome… in MonitorMoments()
H A Dex4.c753 PetscReal pmoments[4]; /* \int f, \int v f, \int v^2 f */ in MonitorEField() local
806 PetscCall(DMSwarmComputeMoments(sw, "velocity", "w_q", pmoments)); in MonitorEField()
807 …e)Emax, (double)lgEmax, (double)chargesum, (double)pmoments[0], (double)pmoments[1], (double)pmome… in MonitorEField()
880 PetscReal pmoments[4], fmoments[4]; /* \int f, \int v f, \int v^2 f */ in MonitorMoments() local
886 PetscCall(DMSwarmComputeMoments(sw, "velocity", "w_q", pmoments)); in MonitorMoments()
889 …"%f\t%f\t%f\t%f\t%f\t%f\t%f\n", (double)t, (double)pmoments[0], (double)pmoments[1], (double)pmome… in MonitorMoments()