Home
last modified time | relevance | path

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

/petsc/src/dm/impls/stag/tutorials/
H A Dex6.c371 Vec velocity_local, stress_local, buoyancy_local; in UpdateVelocity_2d() local
384 PetscCall(DMGetLocalVector(ctx->dm_buoyancy, &buoyancy_local)); in UpdateVelocity_2d()
385 PetscCall(DMGlobalToLocal(ctx->dm_buoyancy, buoyancy, INSERT_VALUES, buoyancy_local)); in UpdateVelocity_2d()
386 PetscCall(DMStagVecGetArrayRead(ctx->dm_buoyancy, buoyancy_local, (void *)&arr_buoyancy)); in UpdateVelocity_2d()
436 PetscCall(DMStagVecRestoreArrayRead(ctx->dm_buoyancy, buoyancy_local, (void *)&arr_buoyancy)); in UpdateVelocity_2d()
437 PetscCall(DMRestoreLocalVector(ctx->dm_buoyancy, &buoyancy_local)); in UpdateVelocity_2d()
449 Vec velocity_local, stress_local, buoyancy_local; in UpdateVelocity_3d() local
466 PetscCall(DMGetLocalVector(ctx->dm_buoyancy, &buoyancy_local)); in UpdateVelocity_3d()
467 PetscCall(DMGlobalToLocal(ctx->dm_buoyancy, buoyancy, INSERT_VALUES, buoyancy_local)); in UpdateVelocity_3d()
468 PetscCall(DMStagVecGetArrayRead(ctx->dm_buoyancy, buoyancy_local, (void *)&arr_buoyancy)); in UpdateVelocity_3d()
[all …]