Searched refs:Iidx (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/ksp/pc/impls/deflation/ |
| H A D | deflationspace.c | 19 PetscInt i, j, k, ilo, ihi, *Iidx; in PCDeflationCreateSpaceWave() local 22 PetscCall(PetscMalloc1(ncoeffs, &Iidx)); in PCDeflationCreateSpaceWave() 38 Iidx[i] = i + ilo * 2 - k; in PCDeflationCreateSpaceWave() 39 if (Iidx[i] >= N) Iidx[i] = PETSC_INT_MIN; in PCDeflationCreateSpaceWave() 42 PetscCall(MatSetValues(defl, 1, &i, ncoeffs, Iidx, coeffs, INSERT_VALUES)); in PCDeflationCreateSpaceWave() 44 Iidx[j] += 2; in PCDeflationCreateSpaceWave() 45 if (Iidx[j] >= N) Iidx[j] = PETSC_INT_MIN; in PCDeflationCreateSpaceWave() 52 PetscCall(PetscFree(Iidx)); in PCDeflationCreateSpaceWave() 60 PetscInt i, j, len, ilo, ihi, *Iidx, m, M; in PCDeflationGetSpaceHaar() local 66 PetscCall(PetscMalloc2(len, &col, len, &Iidx)); in PCDeflationGetSpaceHaar() [all …]
|