Lines Matching refs:ly
595 PetscErrorCode DMDASetOwnershipRanges(DM da, const PetscInt lx[], const PetscInt ly[], const PetscI… in DMDASetOwnershipRanges() argument
608 if (ly) { in DMDASetOwnershipRanges()
610 PetscCall(DMDACheckOwnershipRanges_Private(da, dd->N, dd->n, ly)); in DMDASetOwnershipRanges()
611 if (!dd->ly) PetscCall(PetscMalloc1(dd->n, &dd->ly)); in DMDASetOwnershipRanges()
612 PetscCall(PetscArraycpy(dd->ly, ly, dd->n)); in DMDASetOwnershipRanges()
748 PetscErrorCode DMDAGetOwnershipRanges(DM da, PeOp const PetscInt *lx[], PeOp const PetscInt *ly[], … in DMDAGetOwnershipRanges() argument
755 if (ly) *ly = dd->ly; in DMDAGetOwnershipRanges()
1059 PetscInt *lx, *ly, *lz; in DMRefine_DA() local
1060 PetscCall(PetscMalloc3(dd->m, &lx, dd->n, &ly, dd->p, &lz)); in DMRefine_DA()
1062 …by == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0), dd->s, dd->refine_y, dd->n, dd->ly, ly)); in DMRefine_DA()
1064 PetscCall(DMDASetOwnershipRanges(da2, lx, ly, lz)); in DMRefine_DA()
1065 PetscCall(PetscFree3(lx, ly, lz)); in DMRefine_DA()
1067 PetscInt *lx, *ly; in DMRefine_DA() local
1068 PetscCall(PetscMalloc2(dd->m, &lx, dd->n, &ly)); in DMRefine_DA()
1070 …by == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0), dd->s, dd->refine_y, dd->n, dd->ly, ly)); in DMRefine_DA()
1071 PetscCall(DMDASetOwnershipRanges(da2, lx, ly, NULL)); in DMRefine_DA()
1072 PetscCall(PetscFree2(lx, ly)); in DMRefine_DA()
1206 PetscInt *lx, *ly, *lz; in DMCoarsen_DA() local
1207 PetscCall(PetscMalloc3(dd->m, &lx, dd->n, &ly, dd->p, &lz)); in DMCoarsen_DA()
1209 …y == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0), dd->s, dd->coarsen_y, dd->n, dd->ly, ly)); in DMCoarsen_DA()
1211 PetscCall(DMDASetOwnershipRanges(dmc2, lx, ly, lz)); in DMCoarsen_DA()
1212 PetscCall(PetscFree3(lx, ly, lz)); in DMCoarsen_DA()
1214 PetscInt *lx, *ly; in DMCoarsen_DA() local
1215 PetscCall(PetscMalloc2(dd->m, &lx, dd->n, &ly)); in DMCoarsen_DA()
1217 …y == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0), dd->s, dd->coarsen_y, dd->n, dd->ly, ly)); in DMCoarsen_DA()
1218 PetscCall(DMDASetOwnershipRanges(dmc2, lx, ly, NULL)); in DMCoarsen_DA()
1219 PetscCall(PetscFree2(lx, ly)); in DMCoarsen_DA()
1441 …= 0; i < dd1->n; ++i) compatibleLocal = (PetscBool)(compatibleLocal && (dd1->ly[i] == dd2->ly[i])); in DMGetCompatibility_DA()