| /petsc/src/dm/dt/tests/ |
| H A D | ex12.c | 25 static PetscErrorCode CheckResidual(PetscWeakForm wf, PetscFormKey key, PetscInt in0, PetscPointFn … in CheckResidual() argument 31 …PetscCall(PetscWeakFormGetResidual(wf, key.label, key.value, key.field, key.part, &n0, &f0, &n1, &… in CheckResidual() 44 PetscFormKey key; in TestSetIndex() local 49 key.label = label; in TestSetIndex() 50 key.value = value; in TestSetIndex() 51 key.field = field; in TestSetIndex() 52 key.part = part; in TestSetIndex() 61 …PetscCall(PetscWeakFormSetIndexResidual(wf, key.label, key.value, key.field, key.part, i, f[i], 0,… in TestSetIndex() 62 …PetscCall(PetscWeakFormSetIndexResidual(wf, key.label, key.value, key.field, key.part, j, f[j], 0,… in TestSetIndex() 63 …PetscCall(PetscWeakFormSetIndexResidual(wf, key.label, key.value, key.field, key.part, k, f[k], 0,… in TestSetIndex() [all …]
|
| /petsc/include/petsc/private/ |
| H A D | hashtable.h | 162 static inline PetscHash_t PetscHash_UInt32_v0(PetscHash32_t key) in PetscHash_UInt32_v0() argument 164 key += ~(key << 15); in PetscHash_UInt32_v0() 165 key ^= (key >> 10); in PetscHash_UInt32_v0() 166 key += (key << 3); in PetscHash_UInt32_v0() 167 key ^= (key >> 6); in PetscHash_UInt32_v0() 168 key += ~(key << 11); in PetscHash_UInt32_v0() 169 key ^= (key >> 16); in PetscHash_UInt32_v0() 170 return key; in PetscHash_UInt32_v0() 174 static inline PetscHash_t PetscHash_UInt32_v1(PetscHash32_t key) in PetscHash_UInt32_v1() argument 176 key = ~key + (key << 15); /* key = (key << 15) - key - 1; */ in PetscHash_UInt32_v1() [all …]
|
| H A D | hashset.h | 69 KeyType key; \ 76 kh_foreach_key(ht, key, { \ 77 kh_put(HashT, *hd, key, &ret); \ 85 KeyType key; \ 89 kh_foreach_key(hta, key, { \ 90 kh_put(HashT, ht, key, &ret); \ 131 …static inline PETSC_UNUSED PetscErrorCode Petsc##HashT##Has(Petsc##HashT ht, KeyType key, PetscBoo… 137 iter = kh_get(HashT, ht, key); \ 142 static inline PETSC_UNUSED PetscErrorCode Petsc##HashT##Add(Petsc##HashT ht, KeyType key) \ 148 iter = kh_put(HashT, ht, key, &ret); \ [all …]
|
| H A D | hashmap.txt | 8 PetscHMap<T> - Hash table map with a key of <KeyType> 171 PetscHMap<T>Has - Query for a key in the hash table 175 PetscErrorCode PetscHMap<T>Has(PetscHMap<T> ht, <KeyType> key, PetscBool *has) 179 - key - The key 182 . has - Boolean indicating whether key is in the hash table 191 PetscHMap<T>Get - Get the value for a key in the hash table 195 PetscErrorCode PetscHMap<T>Get(PetscHMap<T> ht, <KeyType> key, <ValType> *val) 199 - key - The key 211 PetscHMap<T>GetWithDefault - Get the value for a key in the hash table but override the default 212 value returned if the key was not found [all …]
|
| H A D | hashmap.h | 109 KeyType key; \ 118 kh_foreach(ht, key, val, { \ 120 i = kh_put(HashT, *hd, key, &ret); \ 162 …static inline PETSC_UNUSED PetscErrorCode Petsc##HashT##Has(Petsc##HashT ht, KeyType key, PetscBoo… 168 iter = kh_get(HashT, ht, key); \ 173 …static inline PETSC_UNUSED PetscErrorCode Petsc##HashT##Get(Petsc##HashT ht, KeyType key, ValType … 179 iter = kh_get(HashT, ht, key); \ 184 …NUSED PetscErrorCode Petsc##HashT##GetWithDefault(Petsc##HashT ht, KeyType key, ValType default_va… 192 PetscCall(Petsc##HashT##Find(ht, key, &it, &found)); \ 201 …static inline PETSC_UNUSED PetscErrorCode Petsc##HashT##Set(Petsc##HashT ht, KeyType key, ValType … [all …]
|
| H A D | hashijklkey.h | 7 …Hash(key) PetscHashCombine(PetscHashCombine(PetscHashInt((key).i), PetscHashInt((key).j)), PetscHa… argument
|
| H A D | petscfptimpl.h | 75 static inline PetscErrorCode PetscFPTAdd(void *key, const char *data) in PetscFPTAdd() argument 79 for (unsigned long i = 0, hash = PetscFPTHashPointer(key); i < PetscFPTData->tablesize; ++i) { in PetscFPTAdd() 80 if (PetscFPTData->functionpointer[hash] == key) { in PetscFPTAdd() 85 PetscFPTData->functionpointer[hash] = key; in PetscFPTAdd() 100 static inline PetscErrorCode PetscFPTFind(void *key, char const **data) in PetscFPTFind() argument 106 hash = PetscFPTHashPointer(key); in PetscFPTFind() 109 else if (PetscFPTData->functionpointer[hash] == key) { in PetscFPTFind()
|
| H A D | hashijkkey.h | 7 …ne PetscHashIJKKeyHash(key) PetscHashCombine(PetscHashInt((key).i), PetscHashCombine(PetscHash… argument
|
| /petsc/systems/Apple/OSX/bin/ |
| H A D | makeframework | 48 <key>BuildMachineOSBuild</key> 50 <key>CFBundleDevelopmentRegion</key> 52 <key>CFBundleExecutable</key> 54 <key>CFBundleIdentifier</key> 56 <key>CFBundleInfoDictionaryVersion</key> 58 <key>CFBundleName</key> 60 <key>CFBundlePackageType</key> 62 <key>CFBundleShortVersionString</key> 64 <key>CFBundleSignature</key> 66 <key>CFBundleVersion</key> [all …]
|
| /petsc/systems/Apple/iOS/bin/ |
| H A D | makeframework | 44 <key>BuildMachineOSBuild</key> 46 <key>CFBundleDevelopmentRegion</key> 48 <key>CFBundleExecutable</key> 50 <key>CFBundleIdentifier</key> 52 <key>CFBundleInfoDictionaryVersion</key> 54 <key>CFBundleName</key> 56 <key>CFBundlePackageType</key> 58 <key>CFBundleShortVersionString</key> 60 <key>CFBundleSignature</key> 62 <key>CFBundleVersion</key> [all …]
|
| /petsc/config/BuildSystem/ |
| H A D | RDict.py | 153 def getType(self, key): argument 156 value = dict.__getitem__(self, key) 157 self.writeLogLine('getType: Getting local type for '+key+' '+str(value)) 162 return self.send(key) 165 def dict_has_key(self, key): argument 167 return key in dict(self) 169 def __getitem__(self, key): argument 172 if self.dict_has_key(key): 173 self.writeLogLine('__getitem__: '+key+' has local type') 177 if self.send(key, operation = 'has_key'): [all …]
|
| H A D | nargs.py | 15 def __init__(self, key, value = None, help = '', isTemporary = False, deprecated = False): argument 16 self.key = key 53 key = arg[oldIdx:idx] 63 value[key] = Arg.parseValue(arg[oldIdx:idx]) 78 (key, value) = arg[start:].split('=', 1) 81 (key, value) = (None, arg) 83 (key, value) = (arg[start:], '1') 84 return (key, Arg.parseValue(value)) 88 def findArgument(key, argList): argument 98 if k == key: [all …]
|
| /petsc/src/mat/impls/aij/seq/ |
| H A D | seqhashmatsetvalues.h | 19 PetscHashIJKey key; in PetscConcat() local 26 key.i = rows[r]; in PetscConcat() 28 bkey.i = key.i / bs; in PetscConcat() 30 if (key.i < 0) continue; in PetscConcat() 32 key.j = cols[c]; in PetscConcat() 34 bkey.j = key.j / bs; in PetscConcat() 38 if (key.j < 0) continue; in PetscConcat() 42 if (key.j < key.i) continue; in PetscConcat() 44 if (key.j < 0) continue; in PetscConcat() 48 if (ignorezeroentries && value == 0.0 && key.i != key.j) continue; in PetscConcat() [all …]
|
| /petsc/share/petsc/saws/js/ |
| H A D | PETSc.js | 113 jQuery.each(sub,function(key,value){ argument 114 fullkey = fullkey+key;//key contains things such as "PETSc" or "Options" 117 if (key != "SAWs_ROOT_DIRECTORY") { 126 jQuery.each(sub[key].variables, function(vKey, vValue) {//for each variable... 132 if(vKey.indexOf("prefix") != -1 && sub[key].variables[vKey].data[0] == "(null)") 145 …for(j=0;j<sub[key].variables[vKey].data.length;j++){//vKey tells us a lot of information on what t… 148 manualSave = sub[key].variables[vKey].data[j]; 153 …mily: Courier\" size=\""+(sub[key].variables[vKey].data[j].toString().length+1)+"\" id=\"data"+ful… 157 … if(sub[key].variables[vKey].alternatives.length == 0) {//case where there are no alternatives 158 if(sub[key].variables[vKey].dtype == "SAWs_BOOLEAN") { [all …]
|
| H A D | utils.js | 4 for (var key in data) { 5 if (data.hasOwnProperty(key)) { 6 if(data[key].name == name && key.indexOf(parent) == 0) 7 return key; 19 for (var key in data) { 20 if (data.hasOwnProperty(key)) { 21 if(getNumUnderscores(key) == childNumUnderscores && key.indexOf(parent) == 0)
|
| /petsc/include/petsc/private/khash/ |
| H A D | khash.h | 210 extern khint_t kh_get_##name(const kh_##name##_t *h, khkey_t key); \ 212 extern khint_t kh_put_##name(kh_##name##_t *h, khkey_t key, int *ret); \ 234 SCOPE khint_t kh_get_##name(const kh_##name##_t *h, khkey_t key) \ 239 k = __hash_func(key); i = k & mask; \ 241 …while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) … 275 khkey_t key = h->keys[j]; \ 283 k = __hash_func(key); \ 288 { khkey_t tmp = h->keys[i]; h->keys[i] = key; key = tmp; } \ 292 h->keys[i] = key; \ 311 SCOPE khint_t kh_put_##name(kh_##name##_t *h, khkey_t key, int *ret) \ [all …]
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/ |
| H A D | _register.py | 36 for key in list(check_function_map.keys()): 37 if key not in allowed_symbol_names: 38 del check_function_map[key] 41 def __register_base(key: _T, value: _U, target_map: dict[_T, _U], exist_ok: bool) -> None: 42 if key in target_map: 46 target_map[key] = value 193 for key, value in default_classid_map.items(): 194 register_classid(key, value) 227 for key, value in default_checks.items(): 228 register_symbol_check(key, value) [all …]
|
| /petsc/src/sys/tests/ |
| H A D | ex43.c | 11 PetscHashIJKey key; in main() local 28 key.i = PetscMin(i, j); in main() 29 key.j = PetscMax(i, j); in main() 30 PetscCall(PetscHSetIJQueryAdd(table, key, &flag)); in main() 40 key.i = i; in main() 41 key.j = j; in main() 42 PetscCall(PetscHSetIJHas(table, key, &flag)); in main() 50 key.i = i; in main() 51 key.j = j; in main() 52 PetscCall(PetscHSetIJQueryDel(table, key, &flag)); in main()
|
| H A D | ex42.c | 27 PetscInt key = i + j * N; in main() local 28 PetscCall(PetscHSetIQueryAdd(table, key, &flag)); in main() 38 PetscInt key = i + j * N; in main() local 39 PetscCall(PetscHSetIHas(table, key, &flag)); in main() 47 PetscInt key = i + j * N; in main() local 48 PetscCall(PetscHSetIQueryDel(table, key, &flag)); in main()
|
| H A D | ex64.cxx | 228 auto key = key_type{}; in test_insert() 235 auto &key = key_value.first; in test_insert() local 237 const auto key_const = key; in test_insert() 242 …ret.second, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s reinserted key '%s'", op, this->key_printer(key)); in test_insert() 243 … key, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s returned iterator key '%s' != expected '%s'", this->key… in test_insert() 245 …k(map, map[key] == value, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s map[%s] '%s' != '%s'", op, this->ke… in test_insert() 253 PetscCall(CHECK_REINSERT(map.emplace(key, value))); in test_insert() 254 …PetscCall(CHECK_REINSERT(map.emplace(std::piecewise_construct, std::make_tuple(key), std::make_tup… in test_insert() 255 PetscCall(CHECK_REINSERT(map.insert(std::make_pair(key, value)))); in test_insert() 264 PetscCallCXX(map[key] = value); in test_insert() [all …]
|
| /petsc/src/vec/is/is/tests/ |
| H A D | ex7.c | 9 PetscInt n = 7, key = 3, nonkey = 1, keylocation = 4, sortedlocation = 2, location; in TestGeneral() local 14 PetscCall(ISLocate(is, key, &location)); in TestGeneral() 15 …RR_PLIB, "Key %" PetscInt_FMT " not at %" PetscInt_FMT ": %" PetscInt_FMT, key, keylocation, locat… in TestGeneral() 19 PetscCall(ISLocate(is, key, &location)); in TestGeneral() 20 …RR_PLIB, "Key %" PetscInt_FMT " not at %" PetscInt_FMT ": %" PetscInt_FMT, key, sortedlocation, lo… in TestGeneral() 33 PetscInt bs = 5, n = 7, key = 16, nonkey = 7, keylocation = 21, sortedlocation = 11, location; in TestBlock() local 38 PetscCall(ISLocate(is, key, &location)); in TestBlock() 39 …RR_PLIB, "Key %" PetscInt_FMT " not at %" PetscInt_FMT ": %" PetscInt_FMT, key, keylocation, locat… in TestBlock() 43 PetscCall(ISLocate(is, key, &location)); in TestBlock() 44 …RR_PLIB, "Key %" PetscInt_FMT " not at %" PetscInt_FMT ": %" PetscInt_FMT, key, sortedlocation, lo… in TestBlock() [all …]
|
| /petsc/src/mat/impls/preallocator/ |
| H A D | matpreallocator.c | 55 PetscHashIJKey key; in MatSetValues_Preallocator() local 58 key.i = rows[r]; in MatSetValues_Preallocator() 59 if (key.i < 0) continue; in MatSetValues_Preallocator() 60 if ((key.i < rStart) || (key.i >= rEnd)) { in MatSetValues_Preallocator() 61 PetscCall(MatStashValuesRow_Private(&A->stash, key.i, n, cols, values, PETSC_FALSE)); in MatSetValues_Preallocator() 63 key.i = rows[r] / bs; in MatSetValues_Preallocator() 65 key.j = cols[c] / bs; in MatSetValues_Preallocator() 66 if (key.j < 0) continue; in MatSetValues_Preallocator() 67 PetscCall(PetscHSetIJQueryAdd(p->ht, key, &missing)); in MatSetValues_Preallocator() 69 if ((key.j >= cStart / bs) && (key.j < cEnd / bs)) { in MatSetValues_Preallocator() [all …]
|
| /petsc/src/ts/utils/ |
| H A D | dmplexts.c | 55 PetscFormKey key = {NULL, 0, 0, 0}; in DMPlexTSComputeRHSFunctionFVM() local 64 PetscCall(DMPlexComputeResidualByKey(plex, key, cellIS, time, locX, NULL, time, locF, ctx)); in DMPlexTSComputeRHSFunctionFVM() 147 PetscFormKey key; in DMPlexTSComputeIFunctionFEM() local 149 PetscCall(DMGetRegionNumDS(dm, s, &key.label, NULL, &ds, NULL)); in DMPlexTSComputeIFunctionFEM() 150 key.value = 0; in DMPlexTSComputeIFunctionFEM() 151 key.field = 0; in DMPlexTSComputeIFunctionFEM() 152 key.part = 0; in DMPlexTSComputeIFunctionFEM() 153 if (!key.label) { in DMPlexTSComputeIFunctionFEM() 159 key.value = 1; in DMPlexTSComputeIFunctionFEM() 160 PetscCall(DMLabelGetStratumIS(key.label, key.value, &pointIS)); in DMPlexTSComputeIFunctionFEM() [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscpyappctx.pxi | 4 cdef object key = <Py_uintptr_t> appctx 5 appctx_registry.add(key) 8 cdef object key = <Py_uintptr_t> appctx 9 if key in appctx_registry:
|
| /petsc/src/dm/dt/dualspace/impls/lagrange/tests/ |
| H A D | ex1.c | 18 #define PetscHashLagKeyHash(key) \ argument 19 …key).dim), PetscHashInt((key).order)), PetscHashInt((key).formDegree)), PetscHashCombine(PetscHash… 165 PetscHashLagKey key; in testLagrange() local 193 key.dim = dim; in testLagrange() 194 key.formDegree = formDegree; in testLagrange() 195 PetscCall(PetscDualSpaceGetOrder(sp, &key.order)); in testLagrange() 196 PetscCall(PetscDualSpaceLagrangeGetContinuity(sp, &key.continuous)); in testLagrange() 198 key.tensor = 2; in testLagrange() 203 key.tensor = bTensor; in testLagrange() 205 PetscCall(PetscDualSpaceLagrangeGetTrimmed(sp, &key.trimmed)); in testLagrange() [all …]
|