Searched refs:slot_vx_right (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex6.c | 567 PetscInt slot_vx_left, slot_vy_down, slot_vx_right, slot_vy_up; in UpdateStress_2d() local 585 PetscCall(DMStagGetLocationSlot(ctx->dm_velocity, DMSTAG_RIGHT, 0, &slot_vx_right)); in UpdateStress_2d() 617 …arr_stress[ey][ex][slot_txx] += Lp2M * ctx->dt * (arr_velocity[ey][ex][slot_vx_right] - arr_veloci… in UpdateStress_2d() 619 …ity[ey][ex][slot_vy_down]) / dy + L * ctx->dt * (arr_velocity[ey][ex][slot_vx_right] - arr_velocit… in UpdateStress_2d() 650 …PetscInt slot_vx_left, slot_vy_down, slot_vx_right, slot_vy_up, slot_vz_back, slot_vz… in UpdateStress_3d() local 671 PetscCall(DMStagGetLocationSlot(ctx->dm_velocity, DMSTAG_RIGHT, 0, &slot_vx_right)); in UpdateStress_3d() 709 …s[ez][ey][ex][slot_txx] += Lp2M * ctx->dt * (arr_velocity[ez][ey][ex][slot_vx_right] - arr_velocit… in UpdateStress_3d() 713 …L * ctx->dt * (arr_velocity[ez][ey][ex][slot_vx_right] - arr_velocity[ez][ey][ex][slot_vx_left]) /… in UpdateStress_3d() 715 …ey][ex][slot_vz_back]) / dz + L * ctx->dt * (arr_velocity[ez][ey][ex][slot_vx_right] - arr_velocit… in UpdateStress_3d()
|