Home
last modified time | relevance | path

Searched refs:starts (Results 1 – 25 of 26) sorted by relevance

12

/petsc/lib/petsc/bin/
H A Dpetsc_tas_style.mplstyle1 ##Figure style starts here
4 ##Font Style starts here
8 ##Lines style starts here
12 ##Axes style starts here
15 ##Ticks style starts here
24 ##Mathtext style starts here
27 ##Legend style starts here
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscdmda.pxi201 cdef readonly tuple starts, sizes
237 cdef tuple starts = toDims(dim, xs, ys, zs)
248 self.starts = starts
270 index = adjust_index_exp(self.starts, index)
275 index = adjust_index_exp(self.starts, index)
289 cdef object adjust_index_exp(object starts, object index): argument
291 return adjust_index(starts[0], index)
293 for i, start in enumerate(starts):
/petsc/src/ksp/pc/impls/redistribute/
H A Dredistribute.c81 PetscInt *owner = NULL, *starts = NULL, count, slen; in PCSetUp_Redistribute() local
201 PetscCall(PetscMalloc3(cnt, &svalues, nsends, &send_waits, size, &starts)); in PCSetUp_Redistribute()
202 starts[0] = 0; in PCSetUp_Redistribute()
203 for (PetscMPIInt i = 1; i < size; i++) starts[i] = starts[i - 1] + sizes[i - 1]; in PCSetUp_Redistribute()
204 for (PetscInt i = 0; i < cnt; i++) svalues[starts[owner[i]]++] = rows[i]; in PCSetUp_Redistribute()
210 starts[0] = 0; in PCSetUp_Redistribute()
211 for (PetscMPIInt i = 1; i < size; i++) starts[i] = starts[i - 1] + sizes[i - 1]; in PCSetUp_Redistribute()
214 …if (sizes[i]) PetscCallMPI(MPIU_Isend(svalues + starts[i], sizes[i], MPIU_INT, i, tag, comm, send_… in PCSetUp_Redistribute()
240 PetscCall(PetscFree3(svalues, send_waits, starts)); in PCSetUp_Redistribute()
/petsc/src/vec/vec/utils/
H A Dvscat.c244 …_Private(VecScatter sf, PetscBool send, PetscMPIInt *n, const PetscInt **starts, const PetscInt **… in VecScatterGetRemote_Private() argument
261 if (starts) *starts = &offset[remote_start]; in VecScatterGetRemote_Private()
266 if (starts) *starts = NULL; in VecScatterGetRemote_Private()
297 …_Private(VecScatter sf, PetscBool send, PetscMPIInt *n, const PetscInt **starts, const PetscInt **… in VecScatterGetRemoteOrdered_Private() argument
300 PetscCall(VecScatterGetRemote_Private(sf, send, n, starts, indices, procs, bs)); in VecScatterGetRemoteOrdered_Private()
325 …_Private(VecScatter sf, PetscBool send, PetscMPIInt *n, const PetscInt **starts, const PetscInt **… in VecScatterRestoreRemote_Private() argument
328 if (starts) *starts = NULL; in VecScatterRestoreRemote_Private()
350 …_Private(VecScatter sf, PetscBool send, PetscMPIInt *n, const PetscInt **starts, const PetscInt **… in VecScatterRestoreRemoteOrdered_Private() argument
353 PetscCall(VecScatterRestoreRemote_Private(sf, send, n, starts, indices, procs, bs)); in VecScatterRestoreRemoteOrdered_Private()
/petsc/src/ksp/pc/impls/bjacobi/
H A Dbjacobi.h29 PetscInt *starts; /* starting point of each block */ member
H A Dbjacobi.c849 PetscCall(PetscFree(bjac->starts)); in PCDestroy_BJacobi_Multiblock()
891 PetscCall(VecPlaceArray(bjac->x[i], xin + bjac->starts[i])); in PCApply_BJacobi_Multiblock()
892 PetscCall(VecPlaceArray(bjac->y[i], yin + bjac->starts[i])); in PCApply_BJacobi_Multiblock()
925 PetscCall(VecPlaceArray(bjac->x[i], xin + bjac->starts[i])); in PCApplySymmetricLeft_BJacobi_Multiblock()
926 PetscCall(VecPlaceArray(bjac->y[i], yin + bjac->starts[i])); in PCApplySymmetricLeft_BJacobi_Multiblock()
961 PetscCall(VecPlaceArray(bjac->x[i], xin + bjac->starts[i])); in PCApplySymmetricRight_BJacobi_Multiblock()
962 PetscCall(VecPlaceArray(bjac->y[i], yin + bjac->starts[i])); in PCApplySymmetricRight_BJacobi_Multiblock()
996 PetscCall(VecPlaceArray(bjac->x[i], xin + bjac->starts[i])); in PCApplyTranspose_BJacobi_Multiblock()
997 PetscCall(VecPlaceArray(bjac->y[i], yin + bjac->starts[i])); in PCApplyTranspose_BJacobi_Multiblock()
1056 PetscCall(PetscMalloc1(n_local, &bjac->starts)); in PCSetUp_BJacobi_Multiblock()
[all …]
/petsc/src/binding/petsc4py/test/
H A Dtest_dmda.py47 starts, lsizes = self.da.getCorners()
49 self.assertEqual(dim, len(starts))
53 self.assertEqual(s, starts[i])
59 starts, lsizes = self.da.getGhostCorners()
61 self.assertEqual(dim, len(starts))
65 self.assertEqual(s, starts[i])
/petsc/src/vec/is/is/utils/
H A Discoloring.c519 PetscInt n, *starts = NULL, *sums = NULL, *lsizes = NULL, *newi = NULL; in ISPartitioningToNumbering() local
548 PetscCall(PetscMalloc3(np, &lsizes, np, &starts, np, &sums)); in ISPartitioningToNumbering()
552 PetscCallMPI(MPI_Scan(lsizes, starts, np, MPIU_INT, MPI_SUM, comm)); in ISPartitioningToNumbering()
553 for (PetscMPIInt i = 0; i < np; i++) starts[i] -= lsizes[i]; in ISPartitioningToNumbering()
556 starts[i] += sums[i - 1]; in ISPartitioningToNumbering()
563 for (PetscInt i = 0; i < n; i++) newi[i] = starts[indices[i]]++; in ISPartitioningToNumbering()
564 PetscCall(PetscFree3(lsizes, starts, sums)); in ISPartitioningToNumbering()
/petsc/doc/manualpages/doctext/
H A Dmyst.def18 # Changing the first # at the top of the page to ## also doesn't help, it ALWAYS starts with H1.
/petsc/src/mat/interface/
H A Dmatrix.c1792 …PetscInt *starts = mat->stencil.starts, *dxm = (PetscInt *)idxm, *dxn = (PetscInt *)idxn, sdim = d… in MatSetValuesStencil() local
1811 tmp = *dxm++ - starts[0]; in MatSetValuesStencil()
1813 if ((*dxm++ - starts[j + 1]) < 0 || tmp < 0) tmp = -1; in MatSetValuesStencil()
1814 else tmp = tmp * dims[j] + *(dxm - 1) - starts[j + 1]; in MatSetValuesStencil()
1821 tmp = *dxn++ - starts[0]; in MatSetValuesStencil()
1823 if ((*dxn++ - starts[j + 1]) < 0 || tmp < 0) tmp = -1; in MatSetValuesStencil()
1824 else tmp = tmp * dims[j] + *(dxn - 1) - starts[j + 1]; in MatSetValuesStencil()
1907 …PetscInt *starts = mat->stencil.starts, *dxm = (PetscInt *)idxm, *dxn = (PetscInt *)idxn, sdim = d… in MatSetValuesBlockedStencil() local
1927 tmp = *dxm++ - starts[0]; in MatSetValuesBlockedStencil()
1929 if ((*dxm++ - starts[j + 1]) < 0 || tmp < 0) tmp = -1; in MatSetValuesBlockedStencil()
[all …]
/petsc/share/petsc/matlab/
H A DPetscBinaryWrite.m94 write(fd,A-1,indices); % indices starts at 1
H A DPetscBinaryRead.m163 v = read(fd,m,'int') + 1; % Indexing in MATLAB starts at 1, 0 in PETSc
/petsc/src/dm/impls/da/
H A Dda.c889 PetscInt dims[4], starts[4], dims2[3], starts2[3], dof = dd->w; in DMDAMapMatStencilToGlobal() local
908 starts[i] = starts2[dim - i - 1]; in DMDAMapMatStencilToGlobal()
910 starts[dim] = 0; /* Append the extra dim for dof (won't be used below if dof=1) */ in DMDAMapMatStencilToGlobal()
918 …if (tmp < 0 || dxm[j] < starts[j] || dxm[j] >= (starts[j] + dims[j])) tmp = -1; /* Beyond the ghos… in DMDAMapMatStencilToGlobal()
919 else tmp = tmp * dims[j] + (dxm[j] - starts[j]); in DMDAMapMatStencilToGlobal()
H A Dfdda.c610 PetscInt dim, dof, nx, ny, nz, dims[3], starts[3], M, N, P; in DMCreateMatrix_DA() local
746 …PetscCall(DMDAGetGhostCorners(da, &starts[0], &starts[1], &starts[2], &dims[0], &dims[1], &dims[2]… in DMCreateMatrix_DA()
747 PetscCall(MatSetStencil(A, dim, dims, starts, dof)); in DMCreateMatrix_DA()
/petsc/src/ksp/pc/impls/sor/
H A Dsor.tex58 the array $t$ starts with the value of $b $ and is updated a column of the matrix at a time to cont…
/petsc/share/petsc/saws/
H A Ddocumentation55 … object that has information about that specific solver. The root solver starts with an endtag (th…
/petsc/doc/changes/
H A D31.md112 recommended for use with many processors when VecDot() starts to
/petsc/src/ts/tutorials/
H A Dex30.c1179 PetscInt *cranks_leaf, *cranks_root, *npoints, *points, *ranks, *starts, *gidxs; in LoadFromFile() local
1197 …PetscCall(PetscMalloc4(cEnd - cStart, &points, cEnd - cStart, &ranks, nparts + 1, &starts, cEnd - … in LoadFromFile()
1219 starts[0] = 0; in LoadFromFile()
1220 for (PetscInt c = 0; c < nparts; c++) starts[c + 1] = starts[c] + npoints[c]; in LoadFromFile()
1221 for (PetscInt c = 0; c < cEnd - cStart; c++) points[starts[ranks[c]]++] = c; in LoadFromFile()
1225 PetscCall(PetscFree4(points, ranks, starts, gidxs)); in LoadFromFile()
/petsc/src/snes/tutorials/
H A Dex48.c1333 PetscInt xm, ym, zm, dim, dof = 2, starts[3], dims[3]; local
1352 …PetscCall(DMDAGetGhostCorners(da, &starts[0], &starts[1], &starts[2], &dims[0], &dims[1], &dims[2]…
1353 PetscCall(MatSetStencil(A, dim, dims, starts, dof));
/petsc/src/mat/impls/aij/seq/
H A Daij.c2396 PetscInt *starts, *j_new, *i_new, *aj = a->j, *ai = a->i, ii, *ailen = a->ilen; in MatCreateSubMatrix_SeqAIJ() local
2415 PetscCall(PetscMalloc2(nrows, &lens, nrows, &starts)); in MatCreateSubMatrix_SeqAIJ()
2420 starts[i] = kstart; in MatCreateSubMatrix_SeqAIJ()
2423 starts[i] = k; in MatCreateSubMatrix_SeqAIJ()
2459 ii = starts[i]; in MatCreateSubMatrix_SeqAIJ()
2463 PetscCall(PetscArraycpy(a_new, aa + starts[i], lensi)); in MatCreateSubMatrix_SeqAIJ()
2471 PetscCall(PetscFree2(lens, starts)); in MatCreateSubMatrix_SeqAIJ()
/petsc/doc/manual/
H A Dsection.md38 Defining the `(ndof, offset)` tuple for each mesh point generally first starts with setting the `nd…
H A Dts.md1215 Lastly, one starts the backward run by calling
/petsc/
H A Dgmakefile.test40 # ignore first work if it starts with -, because then there are no shortoptions
/petsc/include/petsc/private/
H A Dmatimpl.h413 PetscInt starts[4]; member
/petsc/src/dm/impls/plex/
H A Dplex.c9145 PetscInt depths[4], gdepths[4], starts[4]; in DMPlexCreatePointNumbering() local
9159 PetscCall(DMPlexGetDepthStratum(dm, depths[d], &starts[d], &end)); in DMPlexCreatePointNumbering()
9160 if (!(starts[d] - end)) empty = PETSC_TRUE; in DMPlexCreatePointNumbering()
9165 starts[d] = -1; in DMPlexCreatePointNumbering()
9167 else PetscCall(PetscSortIntWithArray(depth + 1, starts, depths)); in DMPlexCreatePointNumbering()
9169 …for (d = 0; d <= depth; ++d) PetscCheck(starts[d] < 0 || depths[d] == gdepths[d], PETSC_COMM_SELF,… in DMPlexCreatePointNumbering()

12