| /petsc/src/binding/petsc4py/test/ |
| H A D | test_nsp.py | 65 def rem(nsp, vec): function 68 self.nullsp.setFunction(rem) 72 self.assertTrue(fun is rem)
|
| /petsc/src/dm/partitioner/impls/simple/ |
| H A D | partsimple.c | 200 PetscInt rem = nvGlobal % nparts; in PetscPartitionerPartition_Simple() local 204 if (rem) { in PetscPartitionerPartition_Simple() 208 if (firstLargePart < rem) { in PetscPartitionerPartition_Simple() 211 firstPart = rem + (myFirst - (rem * pBig)) / pSmall; in PetscPartitionerPartition_Simple() 213 if (lastLargePart < rem) { in PetscPartitionerPartition_Simple() 216 lastPart = rem + (myLast - (rem * pBig)) / pSmall; in PetscPartitionerPartition_Simple()
|
| /petsc/src/sys/classes/random/impls/random123/ |
| H A D | random123.c | 103 PetscInt rem, lim; in PetscRandomGetValuesReal_Random123() local 115 rem = (n % 4); in PetscRandomGetValuesReal_Random123() 116 lim = n - rem; in PetscRandomGetValuesReal_Random123() 136 for (PetscInt i = 0; i < rem; i++) PetscCall(PetscRandomGetValueReal(r, &vals[i])); in PetscRandomGetValuesReal_Random123()
|
| /petsc/src/vec/vec/impls/seq/kokkos/ |
| H A D | veckok.kokkos.cxx | 345 PetscInt i, j, cur = 0, ngroup = nv / 8, rem = nv % 8, N = xin->map->n; in VecMultiDot_Private() local 362 if (rem) { /* The remaining */ in VecMultiDot_Private() 363 for (j = 0; j < rem; j++) PetscCall(VecGetKokkosView(yin[cur + j], &yv[j])); in VecMultiDot_Private() 365 … results = Kokkos::subview(zv, Kokkos::pair<PetscInt, PetscInt>(cur, cur + rem)); in VecMultiDot_Private() 368 switch (rem) { in VecMultiDot_Private() 379 for (j = 0; j < rem; j++) PetscCall(VecRestoreKokkosView(yin[cur + j], &yv[j])); in VecMultiDot_Private() 388 PetscInt ngroup = nv / 8, rem = nv % 8, N = xin->map->n; in VecMultiDot_Verbose() local 427 if (rem) { /* The remaining */ in VecMultiDot_Verbose() 428 if (rem > 0) PetscCall(VecGetKokkosView(yp[0], &y0)); in VecMultiDot_Verbose() 429 if (rem > 1) PetscCall(VecGetKokkosView(yp[1], &y1)); in VecMultiDot_Verbose() [all …]
|
| /petsc/src/mat/interface/ftn-custom/ |
| H A D | zmatrixf.c | 27 PETSC_EXTERN void matnullspacesetfunction_(MatNullSpace *sp, PetscErrorCode (*rem)(MatNullSpace, Ve… in matnullspacesetfunction_() 30 ((PetscObject)*sp)->fortran_func_pointers[0] = (PetscFortranCallbackFn *)rem; in matnullspacesetfunction_()
|
| /petsc/src/vec/vec/impls/mpi/ |
| H A D | pdvec.c | 899 PetscCount k, p, q, rem; /* Loop variables over coo arrays */ in VecSetPreallocationCOO_MPI() local 944 …PetscCall(PetscSortedIntUpperBound(i1, nneg, n1, rend - 1 - PETSC_INT_MAX, &rem)); /* rem is upper… in VecSetPreallocationCOO_MPI() 945 …for (k = nneg; k < rem; k++) i1[k] += PETSC_INT_MAX; /* Revert indic… in VecSetPreallocationCOO_MPI() 950 for (k = nneg; k < rem; k++) jmap1[i1[k] - rstart + 1]++; /* Count repeats of each local entry */ in VecSetPreallocationCOO_MPI() 953 …PetscAssert(tot1 == rem - nneg, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Unexpected errors in VecSetPreal… in VecSetPreallocationCOO_MPI() 959 PetscCall(PetscMalloc1(n1 - rem, &Cperm)); in VecSetPreallocationCOO_MPI() 960 PetscCall(PetscArraycpy(Cperm, perm + rem, n1 - rem)); in VecSetPreallocationCOO_MPI() 973 for (k = rem; k < n1;) { in VecSetPreallocationCOO_MPI() 1025 …s2 == n1 - rem, PETSC_COMM_SELF, PETSC_ERR_PLIB, "nleaves2 %" PetscInt_FMT " != number of remote e… in VecSetPreallocationCOO_MPI() 1049 …PetscCall(PetscSFReduceWithMemTypeBegin(sf2, MPIU_INT, PETSC_MEMTYPE_HOST, i1 + rem, PETSC_MEMTYPE… in VecSetPreallocationCOO_MPI() [all …]
|
| /petsc/src/dm/field/impls/da/ |
| H A D | dmfieldda.c | 262 PetscInt rem = cell; in DMFieldEvaluateFE_DA() local 279 ijk[j] = (rem % cellsPer[j]); in DMFieldEvaluateFE_DA() 280 rem /= cellsPer[j]; in DMFieldEvaluateFE_DA() 339 PetscInt rem = cell; in DMFieldEvaluateFV_DA() local 344 ijk[i] = (rem % cellsPer[i]); in DMFieldEvaluateFV_DA() 345 rem /= cellsPer[i]; in DMFieldEvaluateFV_DA()
|
| /petsc/src/vec/is/is/impls/stride/ |
| H A D | stride.c | 130 PetscInt rem, step; in ISLocate_Stride() local 136 rem = key / step; in ISLocate_Stride() 137 if ((rem < is->map->n) && !(key % step)) *location = rem; in ISLocate_Stride()
|
| /petsc/src/mat/impls/sbaij/seq/ |
| H A D | relax.h | 12 PetscInt nnz2 = nnz, rem = nnz & 0x3; \ 13 switch (rem) { \ 20 nnz2 -= rem; \
|
| /petsc/src/tao/leastsquares/tutorials/ |
| H A D | tomographyGenerateData.m | 14 …t(sum(WSz.^2))); NTau = NTau + rem(NTau-Ny,2); % number of discrete beam, enough to cover object d…
|
| /petsc/src/mat/impls/aij/seq/ |
| H A D | aij.h | 508 PetscInt nnz2 = nnz, rem = nnz & 0x3; \ 509 switch (rem) { \ 516 nnz2 -= rem; \ 574 PetscInt nnz2 = nnz, rem = nnz & 0x3; \ 575 switch (rem) { \ 582 nnz2 -= rem; \
|
| /petsc/src/mat/interface/ |
| H A D | matnull.c | 24 PetscErrorCode MatNullSpaceSetFunction(MatNullSpace sp, MatNullSpaceRemoveFn *rem, PetscCtx ctx) in MatNullSpaceSetFunction() argument 28 sp->remove = rem; in MatNullSpaceSetFunction()
|
| /petsc/src/dm/partitioner/impls/multistage/ |
| H A D | mspart.c | 253 PetscMPIInt rem = size - n; in PetscPartitionerMultistage_CreateStages() local 254 PetscCall(PetscMalloc1((m + rem), &ranks)); in PetscPartitionerMultistage_CreateStages() 256 for (i = 0; i < rem; i++) ranks[i + m] = n + i; in PetscPartitionerMultistage_CreateStages() 258 PetscCallMPI(MPI_Group_incl(ggroup, m + rem, ranks, &lgroup[0])); in PetscPartitionerMultistage_CreateStages()
|
| /petsc/src/mat/graphops/coarsen/impls/hem/ |
| H A D | hem.c | 249 PetscCDIntNd *rem, *n1; in PetscCDRemoveAllAt() local 253 rem = ail->array[a_idx]; in PetscCDRemoveAllAt() 255 if (!(n1 = ail->extra_nodes)) ail->extra_nodes = rem; in PetscCDRemoveAllAt() 258 n1->next = rem; in PetscCDRemoveAllAt()
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpiaij.c | 6344 PetscCount k, p, q, rem; /* Loop variables over coo arrays */ in MatSetPreallocationCOO_MPIAIJ() local 6400 …PetscCall(PetscSortedIntUpperBound(i1, k, n1, rend - 1 - PETSC_INT_MAX, &rem)); /* rem is upper bo… in MatSetPreallocationCOO_MPIAIJ() 6401 …for (; k < rem; k++) i1[k] += PETSC_INT_MAX; /* Revert row indi… in MatSetPreallocationCOO_MPIAIJ() 6415 for (k = rem; k < n1;) { in MatSetPreallocationCOO_MPIAIJ() 6467 …s2 == n1 - rem, PETSC_COMM_SELF, PETSC_ERR_PLIB, "nleaves2 %" PetscInt_FMT " != number of remote e… in MatSetPreallocationCOO_MPIAIJ() 6490 …PetscAssert(rem == 0 || i1 != NULL, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cannot add nonzero offset to… in MatSetPreallocationCOO_MPIAIJ() 6491 …PetscAssert(rem == 0 || j1 != NULL, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cannot add nonzero offset to… in MatSetPreallocationCOO_MPIAIJ() 6492 PetscInt *i1prem = PetscSafePointerPlusOffset(i1, rem); in MatSetPreallocationCOO_MPIAIJ() 6493 PetscInt *j1prem = PetscSafePointerPlusOffset(j1, rem); in MatSetPreallocationCOO_MPIAIJ() 6508 …PetscAssert(rem == 0 || perm1 != NULL, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cannot add nonzero offset… in MatSetPreallocationCOO_MPIAIJ() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexcreate.c | 2183 const PetscInt rem = max[i] % procs[i]; in TupleToRanks_Private() local 2186 if (idx < rem * (div + 1)) ranks[i] = idx / (div + 1); in TupleToRanks_Private() 2187 else ranks[i] = rem + (idx - rem * (div + 1)) / div; in TupleToRanks_Private() 2195 const PetscInt rem = max[i] % procs[i]; in RanksToSizes_Private() local 2197 sizes[i] = ranks[i] < rem ? div + 1 : div; in RanksToSizes_Private()
|
| /petsc/src/dm/dt/dualspace/impls/lagrange/ |
| H A D | dspacelagrange.c | 1418 PetscInt rem = j % Nk; in PetscDualSpaceLagrangeCreateSimplexNodeMat() local 1419 PetscInt a, aprev = j - rem; in PetscDualSpaceLagrangeCreateSimplexNodeMat()
|