Searched refs:drawhgcell_v (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex2.c | 145 PetscDrawHG drawhgcell_v; // Histogram of the particle weight in a given cell member 191 options->drawhgcell_v = NULL; in ProcessOptions() 315 PetscCall(PetscDrawHGCreate(drawcell_v, (int)dim, &ctx->drawhgcell_v)); in SetupContext() 316 PetscCall(PetscDrawHGCalcStats(ctx->drawhgcell_v, PETSC_TRUE)); in SetupContext() 317 PetscCall(PetscDrawHGGetAxis(ctx->drawhgcell_v, &axis)); in SetupContext() 318 PetscCall(PetscDrawHGSetNumberBins(ctx->drawhgcell_v, 21)); in SetupContext() 400 PetscCall(PetscDrawHGDestroy(&ctx->drawhgcell_v)); in DestroyContext() 673 PetscCall(PetscDrawHGReset(ctx->drawhgcell_v)); in MonitorVelocity() 674 PetscCall(PetscDrawHGGetDraw(ctx->drawhgcell_v, &drawcell_v)); in MonitorVelocity() 699 … if (c == cell) PetscCall(PetscDrawHGAddWeightedValue(ctx->drawhgcell_v, vel[p * dim], weight[p])); in MonitorVelocity() [all …]
|
| H A D | ex4.c | 193 PetscDrawHG drawhgcell_v; // Histogram of the particle weight in a given cell member 251 options->drawhgcell_v = NULL; in ProcessOptions() 400 PetscCall(PetscDrawHGCreate(drawcell_v, (int)dim, &ctx->drawhgcell_v)); in SetupContext() 401 PetscCall(PetscDrawHGCalcStats(ctx->drawhgcell_v, PETSC_TRUE)); in SetupContext() 402 PetscCall(PetscDrawHGGetAxis(ctx->drawhgcell_v, &axis)); in SetupContext() 403 PetscCall(PetscDrawHGSetNumberBins(ctx->drawhgcell_v, 21)); in SetupContext() 555 PetscCall(PetscDrawHGDestroy(&ctx->drawhgcell_v)); in DestroyContext() 1189 PetscCall(PetscDrawHGReset(ctx->drawhgcell_v)); in MonitorVelocity() 1190 PetscCall(PetscDrawHGGetDraw(ctx->drawhgcell_v, &drawcell_v)); in MonitorVelocity() 1215 … if (c == cell) PetscCall(PetscDrawHGAddWeightedValue(ctx->drawhgcell_v, vel[p * dim], weight[p])); in MonitorVelocity() [all …]
|