Searched refs:slot_vx_left (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex6.c | 374 PetscInt slot_vx_left, slot_vy_down, slot_buoyancy_down, slot_buoyancy_left; in UpdateVelocity_2d() local 399 PetscCall(DMStagGetLocationSlot(ctx->dm_velocity, DMSTAG_LEFT, 0, &slot_vx_left)); in UpdateVelocity_2d() 430 …arr_velocity[ey][ex][slot_vx_left] += B * ctx->dt * ((arr_stress[ey][ex][slot_txx] - arr_stress[ey… in UpdateVelocity_2d() 452 …PetscInt slot_vx_left, slot_vy_down, slot_vz_back, slot_buoyancy_down, slot_buoyancy_… in UpdateVelocity_3d() local 488 PetscCall(DMStagGetLocationSlot(ctx->dm_velocity, DMSTAG_LEFT, 0, &slot_vx_left)); in UpdateVelocity_3d() 523 …arr_velocity[ez][ey][ex][slot_vx_left] += B * ctx->dt * ((arr_stress[ez][ey][ex][slot_txx] - arr_s… in UpdateVelocity_3d() 567 PetscInt slot_vx_left, slot_vy_down, slot_vx_right, slot_vy_up; in UpdateStress_2d() local 584 PetscCall(DMStagGetLocationSlot(ctx->dm_velocity, DMSTAG_LEFT, 0, &slot_vx_left)); in UpdateStress_2d() 617 …ctx->dt * (arr_velocity[ey][ex][slot_vx_right] - arr_velocity[ey][ex][slot_vx_left]) / dx + L * ct… in UpdateStress_2d() 619 …dy + L * ctx->dt * (arr_velocity[ey][ex][slot_vx_right] - arr_velocity[ey][ex][slot_vx_left]) / dx; in UpdateStress_2d() [all …]
|