Home
last modified time | relevance | path

Searched refs:globals (Results 1 – 11 of 11) sorted by relevance

/petsc/src/dm/tests/
H A Dex44.c11 Vec local, global, globals[2], buffer; in main() local
33 PetscCall(DMCompositeGetAccessArray(packer, global, 2, NULL, globals)); in main()
35 PetscCall(VecSet(globals[0], value)); in main()
37 PetscCall(VecSet(globals[1], value)); in main()
40 PetscCall(VecGetLocalSize(globals[0], &n)); in main()
41 PetscCall(VecGetArray(globals[0], &array)); in main()
43 PetscCall(VecRestoreArray(globals[0], &array)); in main()
44 PetscCall(VecGetLocalSize(globals[1], &n)); in main()
45 PetscCall(VecGetArray(globals[1], &array)); in main()
47 PetscCall(VecRestoreArray(globals[1], &array)); in main()
[all …]
/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/dm/impls/sliced/
H A Dsliced.c18 PetscInt *globals, *sd_nnz, *so_nnz, rstart, bs, i; in DMCreateMatrix_Sliced() local
56 PetscCall(PetscMalloc1(slice->n + slice->Nghosts, &globals)); in DMCreateMatrix_Sliced()
58 for (i = 0; i < slice->n; i++) globals[i] = rstart / bs + i; in DMCreateMatrix_Sliced()
60 for (i = 0; i < slice->Nghosts; i++) globals[slice->n + i] = slice->ghosts[i]; in DMCreateMatrix_Sliced()
61 …PetscCall(ISLocalToGlobalMappingCreate(PETSC_COMM_SELF, bs, slice->n + slice->Nghosts, globals, PE… in DMCreateMatrix_Sliced()
/petsc/src/vec/is/utils/
H A Disltog.c11 PetscInt *globals; member
163 PetscInt i, *idx = mapping->indices, n = mapping->n, end, start, *globals; in ISGlobalToLocalMappingSetUp_Basic() local
170 PetscCall(PetscMalloc1(end - start + 2, &globals)); in ISGlobalToLocalMappingSetUp_Basic()
171 map->globals = globals; in ISGlobalToLocalMappingSetUp_Basic()
172 for (i = 0; i < end - start + 1; i++) globals[i] = -1; in ISGlobalToLocalMappingSetUp_Basic()
175 globals[idx[i] - start] = i; in ISGlobalToLocalMappingSetUp_Basic()
203 PetscCall(PetscFree(map->globals)); in ISLocalToGlobalMappingDestroy_Basic()
239 local = map->globals[g / bs - start]; \
250 local = map->globals[g - start]; \
555 PetscInt i, maxlocal, nroots, nleaves, *globals, *ltog; in ISLocalToGlobalMappingCreateSF() local
[all …]
/petsc/src/ksp/pc/impls/wb/
H A Dwb.c20 …PetscInt mwidth, nwidth, pwidth, cnt, mp, np, pp, Ntotal, gl[26], *globals, Ng, *IIi… in DMDAGetWireBasketInterpolation() local
292 PetscCall(PetscMalloc1(26 * mp * np * pp, &globals)); in DMDAGetWireBasketInterpolation()
293 …PetscCallMPI(MPI_Allgather(gl, 26, MPIU_INT, globals, 26, MPIU_INT, PetscObjectComm((PetscObject)d… in DMDAGetWireBasketInterpolation()
301 PetscCall(PetscHMapIPut(ht, globals[i] + 1, &it, &missing)); in DMDAGetWireBasketInterpolation()
308 PetscCall(PetscFree(globals)); in DMDAGetWireBasketInterpolation()
368 …PetscInt mwidth, nwidth, pwidth, cnt, mp, np, pp, Ntotal, gl[6], *globals, Ng, *IIin… in DMDAGetFaceInterpolation() local
581 PetscCall(PetscMalloc1(6 * mp * np * pp, &globals)); in DMDAGetFaceInterpolation()
582 …PetscCallMPI(MPI_Allgather(gl, 6, MPIU_INT, globals, 6, MPIU_INT, PetscObjectComm((PetscObject)da)… in DMDAGetFaceInterpolation()
590 PetscCall(PetscHMapIPut(ht, globals[i] + 1, &it, &missing)); in DMDAGetFaceInterpolation()
597 PetscCall(PetscFree(globals)); in DMDAGetFaceInterpolation()
/petsc/src/dm/impls/redundant/
H A Ddmredundant.c304 PetscInt i, *globals; in DMRedundantSetSize_Redundant() local
313 PetscCall(PetscMalloc1(red->N, &globals)); in DMRedundantSetSize_Redundant()
314 for (i = 0; i < red->N; i++) globals[i] = i; in DMRedundantSetSize_Redundant()
316 …PetscCall(ISLocalToGlobalMappingCreate(PetscObjectComm((PetscObject)dm), 1, red->N, globals, PETSC… in DMRedundantSetSize_Redundant()
/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/binding/petsc4py/test/
H A Dtest_pc_py.py96 klass = globals()[impl]
H A Dtest_mat_py.py317 context = globals()[self.PYCLS]()