Home
last modified time | relevance | path

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

/petsc/src/dm/impls/stag/tutorials/
H A Dex6.c567 PetscInt slot_vx_left, slot_vy_down, slot_vx_right, slot_vy_up; in UpdateStress_2d() local
587 PetscCall(DMStagGetLocationSlot(ctx->dm_velocity, DMSTAG_UP, 0, &slot_vy_up)); in UpdateStress_2d()
617 …city[ey][ex][slot_vx_left]) / dx + L * ctx->dt * (arr_velocity[ey][ex][slot_vy_up] - arr_velocity[… in UpdateStress_2d()
619 …arr_stress[ey][ex][slot_tyy] += Lp2M * ctx->dt * (arr_velocity[ey][ex][slot_vy_up] - arr_velocity[… 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
673 PetscCall(DMStagGetLocationSlot(ctx->dm_velocity, DMSTAG_UP, 0, &slot_vy_up)); in UpdateStress_3d()
709 …[ey][ex][slot_vx_left]) / dx + L * ctx->dt * (arr_velocity[ez][ey][ex][slot_vy_up] - arr_velocity[… in UpdateStress_3d()
712 …arr_stress[ez][ey][ex][slot_tyy] += Lp2M * ctx->dt * (arr_velocity[ez][ey][ex][slot_vy_up] - arr_v… in UpdateStress_3d()
716 …L * ctx->dt * (arr_velocity[ez][ey][ex][slot_vy_up] - arr_velocity[ez][ey][ex][slot_vy_down]) / dy; in UpdateStress_3d()