Home
last modified time | relevance | path

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

/petsc/src/ksp/ksp/tutorials/
H A Dex49.c200 PetscInt cpu_x, cpu_y; in DMDAGetElementOwnershipRanges2d() local
211 PetscCall(DMDAGetInfo(da, 0, 0, 0, 0, &cpu_x, &cpu_y, 0, 0, 0, 0, 0, 0, 0)); in DMDAGetElementOwnershipRanges2d()
217 PetscCall(PetscMalloc1(cpu_y, &LY)); in DMDAGetElementOwnershipRanges2d()
225 PetscCall(VecSetSizes(vly, PETSC_DECIDE, cpu_y)); in DMDAGetElementOwnershipRanges2d()
248 for (i = 0; i < cpu_y; i++) LY[i] = (PetscInt)PetscRealPart(_a[i]); in DMDAGetElementOwnershipRanges2d()
724 PetscInt cpu_x, cpu_y, *lx = NULL, *ly = NULL; in solve_elasticity_2d() local
757 PetscCall(DMDAGetInfo(elas_da, 0, 0, 0, 0, &cpu_x, &cpu_y, 0, 0, 0, 0, 0, 0, 0)); in solve_elasticity_2d()
762 …RLD, DM_BOUNDARY_NONE, DM_BOUNDARY_NONE, DMDA_STENCIL_BOX, mx, my, cpu_x, cpu_y, prop_dof, prop_st… in solve_elasticity_2d()
H A Dex43.c252 PetscInt cpu_x, cpu_y; in DMDAGetElementOwnershipRanges2d() local
263 PetscCall(DMDAGetInfo(da, 0, 0, 0, 0, &cpu_x, &cpu_y, 0, 0, 0, 0, 0, 0, 0)); in DMDAGetElementOwnershipRanges2d()
269 PetscCall(PetscMalloc1(cpu_y, &LY)); in DMDAGetElementOwnershipRanges2d()
277 PetscCall(VecSetSizes(vly, PETSC_DECIDE, cpu_y)); in DMDAGetElementOwnershipRanges2d()
300 for (i = 0; i < cpu_y; i++) LY[i] = (PetscInt)PetscRealPart(_a[i]); in DMDAGetElementOwnershipRanges2d()
1120 PetscInt cpu_x, cpu_y, *lx = NULL, *ly = NULL; in solve_stokes_2d_coupled() local
1153 PetscCall(DMDAGetInfo(da_Stokes, 0, 0, 0, 0, &cpu_x, &cpu_y, 0, 0, 0, 0, 0, 0, 0)); in solve_stokes_2d_coupled()
1158 …RLD, DM_BOUNDARY_NONE, DM_BOUNDARY_NONE, DMDA_STENCIL_BOX, mx, my, cpu_x, cpu_y, prop_dof, prop_st… in solve_stokes_2d_coupled()