Home
last modified time | relevance | path

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

/petsc/src/sys/classes/draw/interface/ !
H A Ddrect.c24 int i, j, xstart, ystart, xend, yend; in PetscDrawIndicatorFunction() local
34 PetscCall(PetscDrawCoordinateToPixel(draw, xmax, ymax, &xend, &yend)); in PetscDrawIndicatorFunction()
35 if (yend < ystart) { in PetscDrawIndicatorFunction()
37 ystart = yend; in PetscDrawIndicatorFunction()
38 yend = tmp; in PetscDrawIndicatorFunction()
42 for (j = ystart; j <= yend; j++) { in PetscDrawIndicatorFunction()
/petsc/src/ksp/ksp/tutorials/ !
H A Dbench_kspsolve.c46 PetscInt xstart, ystart, zstart, xend, yend, zend, nm2 = n - 2, idx; in PreallocateCOO() local
54 yend = ((user->Iend - 1) / n) % n; in PreallocateCOO()
91 if (!xend && !yend) // bottom left in PreallocateCOO()
93 else if (xend && xend < n1 && !yend) // bottom in PreallocateCOO()
95 else if (xend == n1 && !yend) // bottom right in PreallocateCOO()
97 else if (!xend && yend && yend < n1) // left in PreallocateCOO()
98 …user->nnz += 2 * nnz[idx] + (nm2 + yend + yend - 1) * nnz[idx + 1] + nm2 * (yend - 1) * nnz[idx + … in PreallocateCOO()
99 else if (xend && xend < n1 && yend && yend < n1) // center in PreallocateCOO()
100 …user->nnz += 2 * nnz[idx] + (nm2 + yend + yend - 1) * nnz[idx + 1] + (nm2 * (yend - 1) + xend) * n… in PreallocateCOO()
101 else if (xend == n1 && yend && yend < n1) // right in PreallocateCOO()
[all …]
/petsc/src/ts/tests/ !
H A Dex5.c635 PetscInt xend, yend; in RhsFunc() local
663 yend = ys + ym; in RhsFunc()
664 for (j = ys; j < yend; j++) { in RhsFunc()