Home
last modified time | relevance | path

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

/petsc/src/ts/tests/
H A Dex30.c40 Vec *globXArray; member
278 …t g_Mass[], Vec t_fhat[][EX30_MAX_NUM_THRDS], PetscReal moments[], Vec globXArray[], LandauCtx *ct… in gridToParticles_private() argument
293 …dToParticles(grid_dm[grid], globSwarmArray[LAND_PACK_IDX(v_id, grid)], globXArray[LAND_PACK_IDX(v_… in gridToParticles_private()
391 PetscCall(DMCompositeGetAccessArray(pack, X, nDMs, NULL, printCtx->globXArray)); in PostStep()
397 Vec work, subX = printCtx->globXArray[LAND_PACK_IDX(v_id, grid)]; in PostStep()
447 …PetscCall(VecViewFromOptions(printCtx->globXArray[LAND_PACK_IDX(v_id % ctx->batch_sz, grid)], NULL… in PostStep()
450 …PetscCall(VecViewFromOptions(printCtx->globXArray[LAND_PACK_IDX(v_id % ctx->batch_sz, grid + 1)], … in PostStep()
455 PetscCall(DMCompositeRestoreAccessArray(pack, X, nDMs, NULL, printCtx->globXArray)); in PostStep()
473 Vec *globXArray; in go() local
485 PetscCall(PetscMalloc(sizeof(*globXArray) * nDMs, &globXArray)); in go()
[all …]
/petsc/src/ts/utils/dmplexlandau/tutorials/
H A Dex2.c415 Vec globXArray[LANDAU_MAX_GRIDS * LANDAU_MAX_BATCH_SZ]; in Monitor() local
422 PetscCall(DMCompositeGetAccessArray(pack, X, ctx->num_grids * ctx->batch_sz, NULL, globXArray)); in Monitor()
443 …PetscCall(PetscObjectSetName((PetscObject)globXArray[LAND_PACK_IDX(ctx->batch_view_idx, rectx->gri… in Monitor()
446 …PetscCall(VecViewFromOptions(globXArray[LAND_PACK_IDX(ctx->batch_view_idx, rectx->grid_view_idx)],… in Monitor()
462 PetscCall(VecNorm(globXArray[LAND_PACK_IDX(i, grid)], NORM_2, &val)); in Monitor()
477 …etscCall(DMCompositeRestoreAccessArray(pack, X, ctx->num_grids * ctx->batch_sz, NULL, globXArray)); in Monitor()
/petsc/src/ts/utils/dmplexlandau/
H A Dplexland.c144 Vec *locXArray, *globXArray; in LandauFormJacobian_Internal() local
159 PetscCall(PetscMalloc(sizeof(*globXArray) * nDMs, &globXArray)); in LandauFormJacobian_Internal()
161 PetscCall(DMCompositeGetAccessArray(pack, a_X, nDMs, NULL, globXArray)); in LandauFormJacobian_Internal()
164 …Vec locX = locXArray[LAND_PACK_IDX(b_id, grid)], globX = globXArray[LAND_PACK_IDX(b_id, grid)… in LandauFormJacobian_Internal()
182 PetscCall(DMCompositeRestoreAccessArray(pack, a_X, nDMs, NULL, globXArray)); in LandauFormJacobian_Internal()
184 PetscCall(PetscFree(globXArray)); in LandauFormJacobian_Internal()
2400 Vec *globXArray; in DMPlexLandauPrintNorms() local
2412 PetscCall(PetscMalloc(sizeof(*globXArray) * nDMs, &globXArray)); in DMPlexLandauPrintNorms()
2413 PetscCall(DMCompositeGetAccessArray(pack, X, nDMs, NULL, globXArray)); in DMPlexLandauPrintNorms()
2415 Vec Xloc = globXArray[LAND_PACK_IDX(ctx->batch_view_idx, grid)]; in DMPlexLandauPrintNorms()
[all …]