Home
last modified time | relevance | path

Searched refs:shifts (Results 1 – 3 of 3) sorted by relevance

/petsc/src/ts/utils/dmplexlandau/tutorials/
H A Dex1.c93 …tscReal time, PetscReal temps[], PetscReal ns[], PetscInt grid, PetscReal shifts[], LandauCtx *ctx) in SetMaxwellians() argument
112 shifts[0] = 0.5 * PetscSqrtReal(ctx->masses[0] / ctx->masses[1]); in SetMaxwellians()
113 shifts[1] = 50 * (ctx->masses[0] / ctx->masses[1]); in SetMaxwellians()
114 …data[0].shift = ctx->electronShift * shifts[grid] * PetscSqrtReal(data[0].kT_m) / ctx->v_0; // shi… in SetMaxwellians()
375 PetscReal shifts[2]; in main() local
376 …[grid], XsubArray[LAND_PACK_IDX(b_id, grid)], 0.0, ctx->thermal_temps, ctx->n, grid, shifts, ctx)); in main()
/petsc/src/dm/impls/plex/
H A Dplexdistribute.c1496 Vec shifts; in DMPlexCreatePointSF() local
1525 PetscCall(VecCreate(PETSC_COMM_SELF, &shifts)); in DMPlexCreatePointSF()
1526 PetscCall(VecSetSizes(shifts, numShifts, numShifts)); in DMPlexCreatePointSF()
1527 PetscCall(VecSetType(shifts, VECSTANDARD)); in DMPlexCreatePointSF()
1528 PetscCall(VecSetRandom(shifts, r)); in DMPlexCreatePointSF()
1530 PetscCall(VecGetArrayRead(shifts, &shift)); in DMPlexCreatePointSF()
1592 PetscCall(VecRestoreArrayRead(shifts, &shift)); in DMPlexCreatePointSF()
1593 PetscCall(VecDestroy(&shifts)); in DMPlexCreatePointSF()
/petsc/doc/changes/
H A D321.md96 …as calling `MatAssemblyBegin()`/`MatAssemblyEnd()` destroys scalings and shifts for `MATSHELL`, bu…