Home
last modified time | relevance | path

Searched refs:cindices (Results 1 – 5 of 5) sorted by relevance

/petsc/src/vec/is/is/utils/
H A Disdiff.c749 PetscInt alen, clen, *cindices, *cindices2; in ISEmbed() local
759 PetscCall(PetscMalloc1(alen, &cindices)); in ISEmbed()
761 PetscCall(ISGlobalToLocalMappingApply(ltog, gtoltype, alen, aindices, &clen, cindices)); in ISEmbed()
765 cindices2 = cindices; in ISEmbed()
766 PetscCall(PetscMalloc1(clen, &cindices)); in ISEmbed()
767 PetscCall(PetscArraycpy(cindices, cindices2, clen)); in ISEmbed()
770 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, clen, cindices, PETSC_OWN_POINTER, c)); in ISEmbed()
/petsc/src/dm/impls/swarm/
H A Dswarm.c542 PetscInt *findices, *cindices; /* fine is vertices, coarse is particles */ in DMSwarmComputeMassMatrix_Private() local
546 PetscCall(DMSwarmSortGetPointsPerCell(dmc, cell, &numCIndices, &cindices)); in DMSwarmComputeMassMatrix_Private()
558 key.i = cindices[j] * totNc + c + rStart; /* global cols (from Swarm) */ in DMSwarmComputeMassMatrix_Private()
568 PetscCall(DMSwarmSortRestorePointsPerCell(dmc, cell, &numCIndices, &cindices)); in DMSwarmComputeMassMatrix_Private()
591 PetscInt *findices, *cindices; in DMSwarmComputeMassMatrix_Private() local
597 PetscCall(DMSwarmSortGetPointsPerCell(dmc, cell, &numCIndices, &cindices)); in DMSwarmComputeMassMatrix_Private()
603 … for (PetscInt b = 0; b < bs[i]; ++b, ++off) xr[off] = coordVals[i][cindices[j] * bs[i] + b]; in DMSwarmComputeMassMatrix_Private()
623 for (PetscInt c = 0; c < Nc; ++c) rowIDXs[j * Nc + c] = cindices[j] * totNc + c + rStart; in DMSwarmComputeMassMatrix_Private()
626 PetscCall(DMSwarmSortRestorePointsPerCell(dmc, cell, &numCIndices, &cindices)); in DMSwarmComputeMassMatrix_Private()
749 PetscInt *cindices; in DMSwarmComputeMassMatrixSquare_Private() local
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DSection.pyx629 cdef PetscInt *cindices = NULL
630 indices = iarray_i(indices, &nindex, &cindices)
632 CHKERR(PetscSectionSetConstraintIndices(self.sec, cpoint, cindices))
687 cdef PetscInt *cindices = NULL
688 indices = iarray_i(indices, &nindex, &cindices)
690 CHKERR(PetscSectionSetFieldConstraintIndices(self.sec, cpoint, cfield, cindices))
/petsc/src/dm/impls/plex/
H A Dplexfem.c3234 PetscInt *findices, *cindices; in DMPlexComputeInterpolatorGeneral() local
3273 …tion, globalCSection, coarseCells[ccell].index, PETSC_FALSE, &numCIndices, &cindices, NULL, NULL)); in DMPlexComputeInterpolatorGeneral()
3300 PetscCall(MatSetValues(interp, 1, &row, cpdim, &cindices[off], elemMat, INSERT_VALUES)); in DMPlexComputeInterpolatorGeneral()
3301 …tion, globalCSection, coarseCells[ccell].index, PETSC_FALSE, &numCIndices, &cindices, NULL, NULL)); in DMPlexComputeInterpolatorGeneral()
3401 PetscInt *findices, *cindices; in DMPlexComputeMassMatrixGeneral() local
3433 …tion, globalCSection, coarseCells[ccell].index, PETSC_FALSE, &numCIndices, &cindices, NULL, NULL)); in DMPlexComputeMassMatrixGeneral()
3435 key.j = cindices[c]; in DMPlexComputeMassMatrixGeneral()
3443 …tion, globalCSection, coarseCells[ccell].index, PETSC_FALSE, &numCIndices, &cindices, NULL, NULL)); in DMPlexComputeMassMatrixGeneral()
3482 PetscInt *findices, *cindices; in DMPlexComputeMassMatrixGeneral() local
3509 …tion, globalCSection, coarseCells[ccell].index, PETSC_FALSE, &numCIndices, &cindices, NULL, NULL)); in DMPlexComputeMassMatrixGeneral()
[all …]
H A Dplex.c7576 …ndices, const PetscInt rindices[], PetscInt numCIndices, const PetscInt cindices[], const PetscSca… in DMPlexPrintMatSetValues() argument
7585 …ntf(viewer, "[%d]mat col indices[%" PetscInt_FMT "] = %" PetscInt_FMT "\n", rank, i, cindices[i])); in DMPlexPrintMatSetValues()
8560 PetscInt *findices, *cindices; in DMPlexMatSetClosureRefined() local
8659 PetscCall(DMGetWorkArray(dmc, numCIndices, MPIU_INT, &cindices)); in DMPlexMatSetClosureRefined()
8674 …lobalOff < 0 ? -(globalOff + 1) : globalOff, coffsets, PETSC_FALSE, permsC, p, cclperm, cindices)); in DMPlexMatSetClosureRefined()
8696 …2 * p], globalOff < 0 ? -(globalOff + 1) : globalOff, &off, PETSC_FALSE, perm, cclperm, cindices)); in DMPlexMatSetClosureRefined()
8701 …tValues(PETSC_VIEWER_STDOUT_SELF, A, point, numFIndices, findices, numCIndices, cindices, values)); in DMPlexMatSetClosureRefined()
8704 ierr = MatSetValues(A, numFIndices, findices, numCIndices, cindices, values, mode); in DMPlexMatSetClosureRefined()
8710 …tValues(PETSC_VIEWER_STDERR_SELF, A, point, numFIndices, findices, numCIndices, cindices, values)); in DMPlexMatSetClosureRefined()
8712 PetscCall(DMRestoreWorkArray(dmc, numCIndices, MPIU_INT, &cindices)); in DMPlexMatSetClosureRefined()
[all …]