Home
last modified time | relevance | path

Searched refs:lf (Results 1 – 17 of 17) sorted by relevance

/petsc/src/dm/impls/stag/tests/
H A Dex32.c8 Vec gf, gc, lf, lc; in main() local
35 PetscCall(DMCreateLocalVector(dmf, &lf)); in main()
36 PetscCall(DMGlobalToLocal(dmf, gf, INSERT_VALUES, lf)); in main()
41 PetscCall(DMStagRestrictSimple(dmf, lf, dmc, lc)); in main()
51 PetscCall(VecDestroy(&lf)); in main()
/petsc/src/dm/tests/
H A Dex30.c16 Vec x, b, lf; in main() local
71 PetscCall(VecGhostGetLocalForm(x, &lf)); in main()
72 PetscCall(VecGetSize(lf, &m)); in main()
74 PetscCall(VecGetArray(lf, &xx)); in main()
137 PetscCall(VecRestoreArray(lf, &xx)); in main()
138 PetscCall(VecGhostRestoreLocalForm(x, &lf)); in main()
151 PetscCall(VecGhostGetLocalForm(b, &lf)); in main()
153 PetscCall(VecView(lf, PETSC_VIEWER_STDOUT_SELF)); in main()
154 PetscCall(VecGhostRestoreLocalForm(b, &lf)); in main()
/petsc/src/mat/tests/
H A Dex30.c15 PetscInt i, j, m = 5, n = 5, Ii, J, lf = 0; in main() local
33 PetscCall(PetscOptionsGetInt(NULL, NULL, "-lf", &lf, NULL)); in main()
114 info.levels = lf; in main()
142 if (!LU && lf == 0) { in main()
160 lf = -1; in main()
166 info.levels = lf; in main()
194 …if (lf == -1 && norm2 > tol) PetscCall(PetscPrintf(PETSC_COMM_SELF, " reordered SEQAIJ: Cholesky… in main()
197 if (!CHOLESKY && lf == 0 && !matordering) { in main()
H A Dex128.c15 PetscInt i, j, m = 5, n = 5, Ii, J, lf = 0; in main() local
31 PetscCall(PetscOptionsGetInt(NULL, NULL, "-lf", &lf, NULL)); in main()
87 info.levels = lf; in main()
113 …if (lf == -1 && norm2 > tol) PetscCall(PetscPrintf(PETSC_COMM_SELF, " reordered SEQAIJ: Cholesky… in main()
H A Dex74.c11 …PetscInt n, mbs = 16, bs = 1, nz = 3, prob = 1, i, j, k1, k2, col[3], lf, block, row, Ii, J, … in main() local
298 for (lf = -1; lf < 10; lf += inc) { in main()
299 if (lf == -1) { /* Cholesky factor of sB (duplicate sA) */ in main()
306 factinfo.levels = lf; in main()
326 if (lf == -1) { in main()
340 …norm2 && lf - inc != -1) PetscCall(PetscPrintf(PETSC_COMM_SELF, "lf=%" PetscInt_FMT ", %" PetscInt… in main()
342 if (norm2 < tol && lf != -1) break; in main()
/petsc/src/snes/utils/ftn-custom/
H A Dzdmlocalsnesf.c12 PetscFortranCallbackId lf; member
46 …PetscCall(PetscObjectGetFortranCallback((PetscObject)sdm, PETSC_FORTRAN_CALLBACK_SUBTYPE, _cb.lf, … in sourlf()
57 …*ierr = PetscObjectSetFortranCallback((PetscObject)sdm, PETSC_FORTRAN_CALLBACK_SUBTYPE, &_cb.lf, (… in dmsnessetfunctionlocal_()
/petsc/
H A D.editorconfig7 end_of_line = lf
/petsc/src/dm/impls/da/
H A Dda.c939 …l periodic, PetscInt stencil_width, PetscInt ratio, PetscInt m, const PetscInt lc[], PetscInt lf[]) in DMDARefineOwnershipRanges() argument
946 PetscCall(PetscArraycpy(lf, lc, m)); in DMDARefineOwnershipRanges()
953 if (i == m - 1) lf[i] = want; in DMDARefineOwnershipRanges()
966 lf[i] = want; in DMDARefineOwnershipRanges()
968 startf += lf[i]; in DMDARefineOwnershipRanges()
969 remaining -= lf[i]; in DMDARefineOwnershipRanges()
980 …l periodic, PetscInt stencil_width, PetscInt ratio, PetscInt m, const PetscInt lf[], PetscInt lc[]) in DMDACoarsenOwnershipRanges() argument
987 PetscCall(PetscArraycpy(lc, lf, m)); in DMDACoarsenOwnershipRanges()
990 for (i = 0, totalf = 0; i < m; i++) totalf += lf[i]; in DMDACoarsenOwnershipRanges()
996 const PetscInt nextf = startf + lf[i]; in DMDACoarsenOwnershipRanges()
[all …]
/petsc/src/snes/tutorials/
H A Dex7.c268 Vec lu, lf; in ComputeResidual() local
272 PetscCall(DMGetLocalVector(dm, &lf)); in ComputeResidual()
275 PetscCall(VecSet(lf, 0.)); in ComputeResidual()
276 PetscCall(ComputeResidualLocal(dm, lu, lf)); in ComputeResidual()
277 PetscCall(DMLocalToGlobalBegin(dm, lf, INSERT_VALUES, f)); in ComputeResidual()
278 PetscCall(DMLocalToGlobalEnd(dm, lf, INSERT_VALUES, f)); in ComputeResidual()
280 PetscCall(DMRestoreLocalVector(dm, &lf)); in ComputeResidual()
/petsc/include/petsc/private/
H A Ddmdaimpl.h64 PetscErrorCode (*lf)(DM, Vec, Vec, void *); member
/petsc/src/mat/impls/is/
H A Dmatis.c298 MatISLocalFields lf = *(MatISLocalFields *)ptr; in MatISContainerDestroyFields_Private() local
302 for (i = 0; i < lf->nr; i++) PetscCall(ISDestroy(&lf->rf[i])); in MatISContainerDestroyFields_Private()
303 for (i = 0; i < lf->nc; i++) PetscCall(ISDestroy(&lf->cf[i])); in MatISContainerDestroyFields_Private()
304 PetscCall(PetscFree2(lf->rf, lf->cf)); in MatISContainerDestroyFields_Private()
305 PetscCall(PetscFree(lf)); in MatISContainerDestroyFields_Private()
1116 MatISLocalFields lf; in MatConvert_Nest_IS() local
1124 PetscCall(PetscNew(&lf)); in MatConvert_Nest_IS()
1125 PetscCall(PetscMalloc2(nr, &lf->rf, nc, &lf->cf)); in MatConvert_Nest_IS()
1131 PetscCall(ISCreateStride(comm, n, st, 1, &lf->rf[i])); in MatConvert_Nest_IS()
1138 PetscCall(ISCreateStride(comm, n, st, 1, &lf->cf[i])); in MatConvert_Nest_IS()
[all …]
/petsc/src/sys/objects/
H A Dpinit.c831 char *ver, *lf; in PetscInitialize_Common() local
836 PetscCall(PetscStrchr(ver, '\n', &lf)); in PetscInitialize_Common()
837 if (lf) { in PetscInitialize_Common()
838 *lf = 0; in PetscInitialize_Common()
/petsc/src/ksp/ksp/impls/fetidp/
H A Dfetidp.c566 MatISLocalFields lf; in KSPFETIDPSetUpOperators() local
568 PetscCall(PetscContainerGetPointer(c, &lf)); in KSPFETIDPSetUpOperators()
569 PetscCall(PCBDDCSetDofsSplittingLocal(fetidp->innerbddc, lf->nr, lf->rf)); in KSPFETIDPSetUpOperators()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DVec.pyx3300 >>> with vec.localForm() as lf:
3301 ... # compute with lf
/petsc/src/mat/impls/aij/mpi/
H A Dmpiaij.c1111 PetscBool lf; in MatIsTranspose_MPIAIJ() local
1116 PetscCall(MatIsTranspose(Adia, Bdia, tol, &lf)); in MatIsTranspose_MPIAIJ()
1117 PetscCallMPI(MPIU_Allreduce(&lf, f, 1, MPI_C_BOOL, MPI_LAND, PetscObjectComm((PetscObject)Amat))); in MatIsTranspose_MPIAIJ()
/petsc/src/ksp/pc/impls/bddc/
H A Dbddcprivate.c1890 MatISLocalFields lf; in PCBDDCComputeLocalTopologyInfo() local
1891 PetscCall(PetscContainerGetPointer(c, &lf)); in PCBDDCComputeLocalTopologyInfo()
1892 PetscCall(PCBDDCSetDofsSplittingLocal(pc, lf->nr, lf->rf)); in PCBDDCComputeLocalTopologyInfo()
/petsc/doc/manual/
H A Dsnes.md1259 - ``lf``