Searched refs:stress_local (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex6.c | 371 Vec velocity_local, stress_local, buoyancy_local; in UpdateVelocity_2d() local 394 PetscCall(DMGetLocalVector(ctx->dm_stress, &stress_local)); in UpdateVelocity_2d() 395 PetscCall(DMGlobalToLocal(ctx->dm_stress, stress, INSERT_VALUES, stress_local)); in UpdateVelocity_2d() 396 PetscCall(DMStagVecGetArrayRead(ctx->dm_stress, stress_local, (void *)&arr_stress)); in UpdateVelocity_2d() 438 PetscCall(DMStagVecRestoreArrayRead(ctx->dm_stress, stress_local, (void *)&arr_stress)); in UpdateVelocity_2d() 439 PetscCall(DMRestoreLocalVector(ctx->dm_stress, &stress_local)); in UpdateVelocity_2d() 449 Vec velocity_local, stress_local, buoyancy_local; in UpdateVelocity_3d() local 483 PetscCall(DMGetLocalVector(ctx->dm_stress, &stress_local)); in UpdateVelocity_3d() 484 PetscCall(DMGlobalToLocal(ctx->dm_stress, stress, INSERT_VALUES, stress_local)); in UpdateVelocity_3d() 485 PetscCall(DMStagVecGetArrayRead(ctx->dm_stress, stress_local, (void *)&arr_stress)); in UpdateVelocity_3d() [all …]
|