Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 25 of 60) sorted by relevance

123

/petsc/src/vec/is/is/tests/
H A Dex11.c12 PetscInt *keys, *keyscopy, *keyseven, *keyssorted; in main() local
43 PetscCall(PetscMalloc3(n, &keys, n, &keyscopy, n, &keyssorted)); in main()
46 keys[i] = keyscopy[i] = (PetscInt)r; in main()
48 PetscCall(ISCreateGeneral(comm, n, keys, PETSC_USE_POINTER, &is)); in main()
56 PetscCall(PetscParallelSortInt(map, mapeven, keys, keyseven)); in main()
59 …for (i = 0; i < n; i++) PetscCheck(keys[i] == keyscopy[i], PETSC_COMM_SELF, PETSC_ERR_PLIB, "Petsc… in main()
61 PetscCall(PetscParallelSortInt(map, map, keys, keyssorted)); in main()
64 …for (i = 0; i < n; i++) PetscCheck(keys[i] == keyscopy[i], PETSC_COMM_SELF, PETSC_ERR_PLIB, "Petsc… in main()
66 PetscCall(PetscParallelSortInt(map, map, keys, keys)); in main()
67 PetscCall(PetscParallelSortedInt(map->comm, map->n, keys, &sorted)); in main()
[all …]
/petsc/src/sys/tests/
H A Dex40.c25 PetscInt n, v, koff, keys[4], voff, vals[4], na, nb, i, size, *karray, off; in PETSC_HASH_MAP() local
85 keys[0] = keys[1] = 0; in PETSC_HASH_MAP()
86 PetscCall(PetscHMapIGetKeys(ht, &koff, keys)); in PETSC_HASH_MAP()
87 PetscCall(PetscSortInt(koff, keys)); in PETSC_HASH_MAP()
89 PetscTestCheck(keys[0] == 123); in PETSC_HASH_MAP()
90 PetscTestCheck(keys[1] == 321); in PETSC_HASH_MAP()
101 keys[0] = keys[1] = 0; in PETSC_HASH_MAP()
105 PetscCall(PetscHMapIGetKeys(ht, &koff, keys)); in PETSC_HASH_MAP()
107 PetscCall(PetscSortInt(koff, keys)); in PETSC_HASH_MAP()
111 PetscTestCheck(keys[0] == 123); in PETSC_HASH_MAP()
[all …]
/petsc/src/sys/objects/
H A Dgarbage.c209 PetscInt64 *keys; in PetscGarbageCleanup() local
224 PetscCall(PetscMalloc1(entries, &keys)); in PetscGarbageCleanup()
226 PetscCall(PetscHMapObjGetKeys(garbage.map, &offset, keys)); in PetscGarbageCleanup()
229 PetscCall(GarbageKeyAllReduceIntersect_Private(comm, keys, &entries)); in PetscGarbageCleanup()
234 PetscCall(PetscHMapObjGet(garbage.map, keys[ii], &obj)); in PetscGarbageCleanup()
237 PetscCall(PetscHMapObjDel(garbage.map, keys[ii])); in PetscGarbageCleanup()
239 PetscCall(PetscFree(keys)); in PetscGarbageCleanup()
252 PetscInt64 *keys; in PetscGarbageView() local
271 PetscCall(PetscMalloc1(entries, &keys)); in PetscGarbageView()
273 PetscCall(PetscHMapObjGetKeys(garbage.map, &offset, keys)); in PetscGarbageView()
[all …]
/petsc/src/vec/is/utils/
H A Dpsort.c5 …rankStart, PetscMPIInt rankEnd, PetscMPIInt rank, PetscMPIInt n, PetscInt keys[], PetscInt buffer[… in PetscParallelSortInt_Bitonic_Merge() argument
15 PetscCall(PetscSortInt(n, keys)); in PetscParallelSortInt_Bitonic_Merge()
17 PetscCall(PetscSortReverseInt(n, keys)); in PetscParallelSortInt_Bitonic_Merge()
32 …PetscCallMPI(MPI_Sendrecv(keys, n, MPIU_INT, partner, tag, buffer, n, MPIU_INT, partner, tag, comm… in PetscParallelSortInt_Bitonic_Merge()
34 for (i = 0; i < n; i++) keys[i] = (keys[i] <= buffer[i]) ? keys[i] : buffer[i]; in PetscParallelSortInt_Bitonic_Merge()
36 for (i = 0; i < n; i++) keys[i] = (keys[i] > buffer[i]) ? keys[i] : buffer[i]; in PetscParallelSortInt_Bitonic_Merge()
41 …PetscCall(PetscParallelSortInt_Bitonic_Merge(comm, tag, rankStart, mid, rank, n, keys, buffer, for… in PetscParallelSortInt_Bitonic_Merge()
43 …PetscCall(PetscParallelSortInt_Bitonic_Merge(comm, tag, mid, rankEnd, rank, n, keys, buffer, forwa… in PetscParallelSortInt_Bitonic_Merge()
49 …rankStart, PetscMPIInt rankEnd, PetscMPIInt rank, PetscMPIInt n, PetscInt keys[], PetscInt buffer[… in PetscParallelSortInt_Bitonic_Recursive() argument
58 PetscCall(PetscSortInt(n, keys)); in PetscParallelSortInt_Bitonic_Recursive()
[all …]
/petsc/lib/petsc/bin/maint/
H A DprettyprintAPI.py43 for i in sorted(list(classes.keys())):
45 for j in classes[i].keys():
50 for i in sorted(list(typedefs.keys())):
57 for i in sorted(list(structs.keys())):
64 for i in sorted(list(enums.keys())):
75 for i in sorted(list(senums.keys())):
H A DPetscStaticFunctionCandidates.py60 for funcname in function_dict.keys():
72 for func in function_calling_dict.keys():
85 for filename in static_functions_for_file.keys():
/petsc/src/binding/petsc4py/conf/
H A Dstubgen.py209 keys = list(dct.keys())
226 for name in members(keys):
233 for name in members(keys):
275 leftovers = [name for name in keys if name not in done and name not in skip]
300 keys = list(module.__dict__.keys())
301 keys.sort(key=lambda name: name.startswith('_'))
305 for name in keys
322 for name in keys:
335 for k in keys
359 for name in keys:
[all …]
/petsc/src/sys/objects/device/tests/
H A Dex11.cxx40 …kedObjectMapView(PetscViewer vwr, std::size_t nkeys, const PetscObjectId *keys, const PetscMemoryA… in MarkedObjectMapView() argument
52 PetscCall(PetscViewerASCIISynchronizedPrintf(vwr, "id %" PetscInt64_FMT " -> {\n", keys[i])); in MarkedObjectMapView()
74 …mm comm, PetscDeviceContext dctx, std::size_t nkeys, const PetscObjectId *keys, const PetscMemoryA… in CheckMarkedObjectMap_Private() argument
89 PetscCall(MarkedObjectMapView(vwr, nkeys, keys, modes, ndeps, dependencies)); in CheckMarkedObjectMap_Private()
95 …l)(!!(__cond__)), PetscStringize(__cond__), PETSC_COMM_SELF, dctx, nkeys, keys, modes, ndeps, cons…
118 PetscObjectId *keys; in TestAllCombinations() local
126 PetscCall(PetscGetMarkedObjectMap_Internal(&nkeys, &keys, &modes, &ndeps, &dependencies)); in TestAllCombinations()
134 const auto keys_end = keys + nkeys; in TestAllCombinations()
143 key_idx = std::distance(keys, std::find(keys, keys_end, actual_key)); in TestAllCombinations()
146 …PetscCall(CheckMarkedObjectMap(key_idx < std::distance(keys, keys_end), "marked object map could n… in TestAllCombinations()
[all …]
/petsc/lib/petsc/bin/maint/generators/
H A Dc++.py37 skeys = senums.keys()
43 skeys = enums.keys()
57 skeys = classes.keys()
63 skeys = structs.keys()
76 skeys = classes.keys()
81 sskeys = classes[i].keys()
/petsc/include/petsc/private/khash/
H A Dkhash.h202 khkey_t *keys; \
222 kfree((void *)h->keys); kfree(h->flags); \
241 …while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) …
261 khkey_t *new_keys = (khkey_t*)krealloc((void *)h->keys, new_n_buckets * sizeof(khkey_t)); \
263 h->keys = new_keys; \
275 khkey_t key = h->keys[j]; \
288 { khkey_t tmp = h->keys[i]; h->keys[i] = key; key = tmp; } \
292 h->keys[i] = key; \
300 h->keys = (khkey_t*)krealloc((void *)h->keys, new_n_buckets * sizeof(khkey_t)); \
329 …while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) …
[all …]
/petsc/src/binding/petsc4py/docs/source/
H A Dapidoc.py265 keys = list(dct.keys())
282 for name in members(keys):
289 for name in members(keys):
329 leftovers = [name for name in keys if name not in done and name not in skip]
353 keys = list(module.__dict__.keys())
354 keys.sort(key=lambda name: name.startswith('_'))
358 for name in keys
385 for name in keys:
400 for k in keys
424 for name in keys:
[all …]
/petsc/src/dm/dt/interface/
H A Ddtweakform.c293 PetscFormKey *keys; in PetscWeakFormRewriteKeys_Internal() local
299 PetscCall(PetscMalloc1(n, &keys)); in PetscWeakFormRewriteKeys_Internal()
300 PetscCall(PetscHMapFormGetKeys(hmap, &off, keys)); in PetscWeakFormRewriteKeys_Internal()
303 if (keys[i].label == label) { in PetscWeakFormRewriteKeys_Internal()
307 …etscCall(PetscWeakFormGetFunction_Private(wf, hmap, keys[i].label, keys[i].value, keys[i].field, k… in PetscWeakFormRewriteKeys_Internal()
313 if (keys[i].label == label) { in PetscWeakFormRewriteKeys_Internal()
318 …etscCall(PetscWeakFormGetFunction_Private(wf, hmap, keys[i].label, keys[i].value, keys[i].field, k… in PetscWeakFormRewriteKeys_Internal()
321 …PetscCall(PetscWeakFormSetFunction_Private(wf, hmap, keys[i].label, values[v], keys[i].field, keys in PetscWeakFormRewriteKeys_Internal()
322 if (values[v] == keys[i].value) clear = PETSC_FALSE; in PetscWeakFormRewriteKeys_Internal()
324 …etscCall(PetscWeakFormSetFunction_Private(wf, hmap, keys[i].label, keys[i].value, keys[i].field, k… in PetscWeakFormRewriteKeys_Internal()
[all …]
/petsc/src/sys/objects/device/c/
H A Ddevice.c294 PetscErrorCode PetscGetMarkedObjectMap_Internal(size_t *nkeys, PetscObjectId **keys, PetscMemoryAcc… in PetscGetMarkedObjectMap_Internal() argument
298 PetscAssertPointer(keys, 2); in PetscGetMarkedObjectMap_Internal()
303 *keys = NULL; in PetscGetMarkedObjectMap_Internal()
310 PetscErrorCode PetscRestoreMarkedObjectMap_Internal(size_t nkeys, PETSC_UNUSED PetscObjectId **keys in PetscRestoreMarkedObjectMap_Internal() argument
313 PetscAssertPointer(keys, 2); in PetscRestoreMarkedObjectMap_Internal()
317 if (*keys) *keys = NULL; in PetscRestoreMarkedObjectMap_Internal()
/petsc/lib/petsc/bin/
H A Dgeneratefortranbindings.py283 if k.typename in structs.keys() and structs[k.typename].opaque:
395 if k.typename in structs.keys() and structs[k.typename].opaque:
544 for i in files.keys():
559 for i in enums.keys():
564 for i in typedefs.keys():
574 for i in structs.keys():
581 for i in files.keys():
586 for i in senums.keys():
590 for i in files.keys():
595 for i in classes.keys():
[all …]
H A DgetAPI.py174 for i in self.values.keys():
204 for i in self.functions.keys():
480 classlist = classes.keys()
645 for i in includefiles.keys():
651 for i in enums.keys():
657 for i in senums.keys():
663 for i in structs.keys():
669 for i in typedefs.keys():
673 for i in typedefs.keys():
842 for i in classes.keys():
[all …]
/petsc/config/
H A Dreport_tests.py172 if pkgname not in testdata.keys():
203 elif l[0] in testdata[pkgname].keys():
224 for pkg in testdata.keys():
226 for prob in testsuite['problems'].keys():
266 for pkg in testdata.keys():
270 for prob in testsuite['problems'].keys():
/petsc/src/vec/is/sf/tests/output/
H A Dex2_1_window.out2 current info with 2 keys. Ordered key-value pairs follow:
20 current info with 2 keys. Ordered key-value pairs follow:
/petsc/systems/Apple/OSX/examples/PETSc cocoa example/PETSc cocoa example/en.lproj/
H A DInfoPlist.strings1 /* Localized versions of Info.plist keys */
/petsc/src/dm/impls/plex/tests/
H A Dex5.c1137 PetscFormKey keys[3]; in TestAssembly() local
1216 keys[0].label = material; in TestAssembly()
1217 keys[0].value = 1; in TestAssembly()
1218 keys[0].field = 0; in TestAssembly()
1219 keys[0].part = 0; in TestAssembly()
1220 keys[1].label = material; in TestAssembly()
1221 keys[1].value = 2; in TestAssembly()
1222 keys[1].field = 0; in TestAssembly()
1223 keys[1].part = 0; in TestAssembly()
1224 keys[2].label = fault; in TestAssembly()
[all …]
/petsc/src/benchmarks/
H A DbenchmarkExample.py182 arches = sizes.keys()
200 arches = sizes.keys()
201 bs = events[arches[0]].keys()[0]
229 arches = sizes.keys()
230 bs = events[arches[0]].keys()[0]
257 arches = procs.keys()
258 bs = events[arches[0]].keys()[0]
287 arches = sizes.keys()
401 arches = sizes.keys()
/petsc/doc/
H A Dbuild_man_examples_links.py42 keyre = re.compile('|'.join(list(mdict.keys())))
43 uses = {i[1:-1]: [] for i in mdict.keys()}
/petsc/doc/changes/
H A D230.md14 - Options database keys -trmalloc[\_xxx] are changed to -malloc[\_xxx]
91 PCFactorSetShiftNonzero(). Change the option database keys
96 database keys -pc_lu_shift, -pc_ilu_shift, -pc_cholesky_shift and
/petsc/config/BuildSystem/config/
H A DsetsOrdered.py159 return self._data.keys() == other._data.keys()
165 return self._data.keys() != other._data.keys()
/petsc/src/sys/logging/handler/impls/nested/
H A Dlognested.c321 NestedIdPair *keys; in PetscLogNestedCreatePerfNodes() local
336 PetscCall(PetscMalloc2(num_map_entries, &keys, num_map_entries, &vals)); in PetscLogNestedCreatePerfNodes()
338 PetscCall(PetscNestedHashGetPairs(nested->pair_map, &offset, keys, vals)); in PetscLogNestedCreatePerfNodes()
340 NestedId root_local = keys[k].root; in PetscLogNestedCreatePerfNodes()
351 PetscCall(PetscFree2(keys, vals)); in PetscLogNestedCreatePerfNodes()
/petsc/src/sys/objects/device/interface/
H A Dmark_dcontext.cxx359 PetscErrorCode PetscGetMarkedObjectMap_Internal(std::size_t *nkeys, PetscObjectId **keys, PetscMemo… in PetscGetMarkedObjectMap_Internal() argument
366 PetscCall(PetscMalloc4(size, keys, size, modes, size, ndeps, size, dependencies)); in PetscGetMarkedObjectMap_Internal()
371 (*keys)[i] = it.first; in PetscGetMarkedObjectMap_Internal()
382 PetscErrorCode PetscRestoreMarkedObjectMap_Internal(std::size_t nkeys, PetscObjectId **keys, PetscM… in PetscRestoreMarkedObjectMap_Internal() argument
386 PetscCall(PetscFree4(*keys, *modes, *ndeps, *dependencies)); in PetscRestoreMarkedObjectMap_Internal()

123