Home
last modified time | relevance | path

Searched refs:cpu_x (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()
213 proc_J = rank / cpu_x; in DMDAGetElementOwnershipRanges2d()
214 proc_I = rank - cpu_x * proc_J; in DMDAGetElementOwnershipRanges2d()
216 PetscCall(PetscMalloc1(cpu_x, &LX)); in DMDAGetElementOwnershipRanges2d()
221 PetscCall(VecSetSizes(vlx, PETSC_DECIDE, cpu_x)); in DMDAGetElementOwnershipRanges2d()
239 for (i = 0; i < cpu_x; i++) LX[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 …COMM_WORLD, DM_BOUNDARY_NONE, DM_BOUNDARY_NONE, DMDA_STENCIL_BOX, mx, my, cpu_x, cpu_y, prop_dof, … 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()
265 proc_J = rank / cpu_x; in DMDAGetElementOwnershipRanges2d()
266 proc_I = rank - cpu_x * proc_J; in DMDAGetElementOwnershipRanges2d()
268 PetscCall(PetscMalloc1(cpu_x, &LX)); in DMDAGetElementOwnershipRanges2d()
273 PetscCall(VecSetSizes(vlx, PETSC_DECIDE, cpu_x)); in DMDAGetElementOwnershipRanges2d()
291 for (i = 0; i < cpu_x; i++) LX[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 …COMM_WORLD, DM_BOUNDARY_NONE, DM_BOUNDARY_NONE, DMDA_STENCIL_BOX, mx, my, cpu_x, cpu_y, prop_dof, … in solve_stokes_2d_coupled()