Home
last modified time | relevance | path

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

/petsc/src/vec/vec/tutorials/
H A Dex18.c25 Vec x, xend; in main() local
43 PetscCall(VecDuplicate(x, &xend)); in main()
47 PetscCall(VecSetValues(xend, 1, &i, &result, INSERT_VALUES)); in main()
51 PetscCall(VecSetValues(xend, 1, &i, &result, INSERT_VALUES)); in main()
59 PetscCall(VecAssemblyBegin(xend)); in main()
60 PetscCall(VecAssemblyEnd(xend)); in main()
86 PetscCall(VecDot(x, xend, &dummy)); in main()
94 PetscCall(VecDestroy(&xend)); in main()
H A Dex18f.F9019 Vec x, xend
38 PetscCallA(VecDuplicate(x, xend, ierr))
42 PetscCallA(VecSetValues(xend, one, [i], [myResult], INSERT_VALUES, ierr))
47 PetscCallA(VecSetValues(xend, one, [i], [myResult], INSERT_VALUES, ierr))
55 PetscCallA(VecAssemblyBegin(xend, ierr))
56 PetscCallA(VecAssemblyEnd(xend, ierr))
80 PetscCallA(VecDot(x, xend, dummy, ierr))
88 PetscCallA(VecDestroy(xend, ierr))
/petsc/src/ksp/ksp/tutorials/
H A Dbench_kspsolve.c46 PetscInt xstart, ystart, zstart, xend, yend, zend, nm2 = n - 2, idx; in PreallocateCOO() local
53 xend = (user->Iend - 1) % n; in PreallocateCOO()
91 if (!xend && !yend) // bottom left in PreallocateCOO()
93 else if (xend && xend < n1 && !yend) // bottom in PreallocateCOO()
94 user->nnz += nnz[idx] + xend * nnz[idx + 1]; in PreallocateCOO()
95 else if (xend == n1 && !yend) // bottom right in PreallocateCOO()
97 else if (!xend && yend && yend < n1) // left 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/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()
41 for (i = xstart; i <= xend; i++) { in PetscDrawIndicatorFunction()
/petsc/src/ksp/ksp/utils/dm/
H A Ddmproject.c1013 PetscInt xend[3], vend[3]; in DMSwarmRemap_Colella_Internal() local
1054 xend[0] = xcEnd - xcStart; in DMSwarmRemap_Colella_Internal()
1055 xend[1] = 1; in DMSwarmRemap_Colella_Internal()
1059 …t(hx[1]), (double)PetscRealPart(hv[0]), (double)PetscRealPart(hv[1]), xend[0], xend[1], vend[0], v… in DMSwarmRemap_Colella_Internal()
1099 const PetscInt xip = xi < 0 ? xi + xend[0] : (xi >= xend[0] ? xi - xend[0] : xi); in DMSwarmRemap_Colella_Internal()
1101 for (PetscInt xj = PetscMax(xs[1] - 1, 0); xj < PetscMin(xs[1] + 3, xend[1]); ++xj) { in DMSwarmRemap_Colella_Internal()
1107 const PetscInt rc = xip * xend[1] + xj; in DMSwarmRemap_Colella_Internal()
/petsc/src/tao/constrained/impls/ipm/
H A Dipm.c224 PetscInt xstart, xend; in IPMInitializeBounds() local
275 PetscCall(VecGetOwnershipRange(tao->solution, &xstart, &xend)); in IPMInitializeBounds()
379 for (i = xstart; i < xend; i++) { in IPMInitializeBounds()
383 PetscCall(ISCreateGeneral(comm, xend - xstart, stepind, PETSC_COPY_VALUES, &sis)); in IPMInitializeBounds()
384 PetscCall(ISCreateGeneral(comm, xend - xstart, xind, PETSC_COPY_VALUES, &is1)); in IPMInitializeBounds()
/petsc/src/ts/tests/
H A Dex5.c635 PetscInt xend, yend; in RhsFunc() local
662 xend = xs + xm; in RhsFunc()
665 for (i = xs; i < xend; i++) { in RhsFunc()