Home
last modified time | relevance | path

Searched refs:locals (Results 1 – 14 of 14) sorted by relevance

/petsc/src/binding/petsc4py/demo/legacy/kspsolve/
H A Dtest_mat_ksp.py4 def execfile(file, globals=globals(), locals=locals()): argument
6 try: exec(fh.read()+"\n", globals, locals)
H A Dtest_mat_cg.py4 def execfile(file, globals=globals(), locals=locals()): argument
6 try: exec(fh.read()+"\n", globals, locals)
/petsc/src/mat/graphops/partition/impls/pmetis/
H A Dpmetis.c41 PetscInt *locals = NULL; in MatPartitioningApply_Parmetis_Private() local
82 PetscCall(PetscMalloc1(pmat->rmap->n, &locals)); in MatPartitioningApply_Parmetis_Private()
89 for (i = 0; i < pmat->rmap->n; i++) locals[i] = part_indices[i * bs]; in MatPartitioningApply_Parmetis_Private()
142 locals[i] = loc / 2; in MatPartitioningApply_Parmetis_Private()
146 locals[i] = level[loc]; in MatPartitioningApply_Parmetis_Private()
148 } else locals[i] = loc / 2; in MatPartitioningApply_Parmetis_Private()
154 … (idx_t *)&pmetis->cuts, (idx_t *)locals, &comm)); in MatPartitioningApply_Parmetis_Private()
157 (idx_t *)&pmetis->cuts, (idx_t *)locals, &comm)); in MatPartitioningApply_Parmetis_Private()
160 (idx_t *)&pmetis->cuts, (idx_t *)locals, &comm)); in MatPartitioningApply_Parmetis_Private()
173 for (j = 0; j < bs; j++) newlocals[bs * i + j] = locals[i]; in MatPartitioningApply_Parmetis_Private()
[all …]
/petsc/src/mat/graphops/partition/impls/scotch/
H A Dscotch.c273 …SCOTCH_Num *locals, *velotab, *veloloctab, *edloloctab, vertlocnbr, edgelocnbr, npar… in MatPartitioningApply_PTScotch_Private() local
293 PetscCall(PetscMalloc1(mat->rmap->n + 1, &locals)); in MatPartitioningApply_PTScotch_Private()
315 locals[i] = loc / 2; in MatPartitioningApply_PTScotch_Private()
319 locals[i] = level[loc]; in MatPartitioningApply_PTScotch_Private()
321 } else locals[i] = loc / 2; in MatPartitioningApply_PTScotch_Private()
374 PetscCallExternal(SCOTCH_dgraphMapInit, &grafdat, &mappdat, &archdat, locals); in MatPartitioningApply_PTScotch_Private()
395 PetscCallExternal(SCOTCH_graphMap, &grafdat, &archdat, &stradat, locals); in MatPartitioningApply_PTScotch_Private()
398 PetscCallExternal(SCOTCH_graphPart, &grafdat, nparts, &stradat, locals); in MatPartitioningApply_PTScotch_Private()
412 for (j = 0; j < bs; j++) newlocals[bs * i + j] = locals[i]; in MatPartitioningApply_PTScotch_Private()
414 PetscCall(PetscFree(locals)); in MatPartitioningApply_PTScotch_Private()
[all …]
/petsc/src/mat/graphops/partition/impls/party/
H A Dparty.c26 PetscInt i, *parttab, *locals, nb_locals, M, N; in MatPartitioningApply_Party() local
122 locals = parttab + mat->rmap->rstart; in MatPartitioningApply_Party()
124 …PetscCall(ISCreateGeneral(PetscObjectComm((PetscObject)part), nb_locals, locals, PETSC_COPY_VALUES… in MatPartitioningApply_Party()
/petsc/src/dm/impls/plex/
H A Dplexinterpolate.c801 const PetscInt *locals; in DMPlexOrientInterface_Internal() local
821 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, &locals, &remotes)); in DMPlexOrientInterface_Internal()
827 PetscCall(DMPlexGetConeSize(dm, locals[p], &coneSize)); in DMPlexOrientInterface_Internal()
848 PetscCall(PetscFindInt(cone[c], nleaves, locals, &ind0)); in DMPlexOrientInterface_Internal()
969 const PetscInt *locals; in DMPlexMapToLocalPoint() local
975 PetscCall(PetscSFGetGraph(sf, NULL, NULL, &locals, NULL)); in DMPlexMapToLocalPoint()
987 *localPoint = locals[l]; in DMPlexMapToLocalPoint()
996 const PetscInt *locals, *rootdegree; in DMPlexMapToGlobalPoint() local
1005 PetscCall(PetscSFGetGraph(sf, NULL, &Nl, &locals, &remotes)); in DMPlexMapToGlobalPoint()
1010 PetscCall(PetscFindInt(localPoint, Nl, locals, &l)); in DMPlexMapToGlobalPoint()
[all …]
H A Dplex.c9728 const PetscInt *locals; in DMPlexCheckPointSF() local
9747 PetscCall(PetscSFGetGraph(pointSF, &nroots, &nleaves, &locals, &remotes)); in DMPlexCheckPointSF()
9773 const PetscInt point = locals ? locals[l] : l; in DMPlexCheckPointSF()
9786 const PetscInt point = locals ? locals[l] : l; in DMPlexCheckPointSF()
9794 if (locals) { in DMPlexCheckPointSF()
9795 PetscCall(PetscFindInt(cone[c], nleaves, locals, &idx)); in DMPlexCheckPointSF()
/petsc/src/mat/graphops/partition/impls/chaco/
H A Dchaco.c54 PetscInt *parttab, *locals, i, nb_locals, M, N; in MatPartitioningApply_Chaco() local
160 locals = parttab + mat->rmap->rstart; in MatPartitioningApply_Chaco()
161 …PetscCall(ISCreateGeneral(PetscObjectComm((PetscObject)part), nb_locals, locals, PETSC_COPY_VALUES… in MatPartitioningApply_Chaco()
/petsc/lib/petsc/bin/maint/
H A Dtoclapack.sh614 /* System generated locals */
1751 /* System generated locals */
1967 /* System generated locals */
2267 /* System generated locals */
2309 /* System generated locals */
2407 /* System generated locals */
2604 /* System generated locals */
3742 /* System generated locals */
3958 /* System generated locals */
4258 /* System generated locals */
[all …]
H A Dxclude3 petsc-dist/.dir-locals.el
/petsc/config/BuildSystem/config/
H A DcompilerFlags.py75 mod = __import__(self.argDB['optionsModule'], locals(), globals(), ['CompilerOptions'])
H A Dframework.py305 type = __import__(moduleName, globals(), locals(), ['Configure']).Configure
/petsc/src/vec/is/sf/tutorials/
H A Dex1.c18 static PetscErrorCode PetscSFViewCustomLocals_Private(PetscSF sf, const PetscInt locals[], PetscVie… in PetscSFViewCustomLocals_Private() argument
31 …intf(viewer, "[%d] %" PetscInt_FMT " <- (%d,%" PetscInt_FMT ")\n", rank, locals[i], (PetscMPIInt)i… in PetscSFViewCustomLocals_Private()
/petsc/config/
H A Dtestparse.py429 if not 'subtestname' in locals():