Searched refs:hmap (Results 1 – 4 of 4) sorted by relevance
| /petsc/include/petsc/private/ |
| H A D | dmlabelimpl.h | 35 PetscHMapI hmap; /* Hash map for fast strata search */ member
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpiptap.c | 632 …P_private(Mat A, Mat P, Mat P_oth, const PetscInt *map, PetscInt dof, PetscInt i, PetscHMapIV hmap) in MatPtAPNumericComputeOneRowOfAP_private() argument 656 …for (k = 0; k < nzpi; k++) PetscCall(PetscHMapIVAddValue(hmap, pj[k] * dof + offset + pcstart, ra … in MatPtAPNumericComputeOneRowOfAP_private() 667 …for (k = 0; k < nzpi; k++) PetscCall(PetscHMapIVAddValue(hmap, p->garray[pj[k]] * dof + offset, ra… in MatPtAPNumericComputeOneRowOfAP_private() 686 …for (col = 0; col < pnz; col++) PetscCall(PetscHMapIVAddValue(hmap, p_othcols[col] * dof + offset,… in MatPtAPNumericComputeOneRowOfAP_private() 700 PetscHMapIV hmap; in MatPtAPNumeric_MPIAIJ_MPIXAIJ_allatonce() local 729 PetscCall(PetscHMapIVCreateWithSize(cmaxr, &hmap)); in MatPtAPNumeric_MPIAIJ_MPIXAIJ_allatonce() 732 PetscCall(PetscHMapIVClear(hmap)); in MatPtAPNumeric_MPIAIJ_MPIXAIJ_allatonce() 737 …etscCall(MatPtAPNumericComputeOneRowOfAP_private(A, P, ptap->P_oth, mappingindices, dof, i, hmap)); in MatPtAPNumeric_MPIAIJ_MPIXAIJ_allatonce() 739 PetscCall(PetscHMapIVGetPairs(hmap, &voff, apindices, apvalues)); in MatPtAPNumeric_MPIAIJ_MPIXAIJ_allatonce() 779 PetscCall(PetscHMapIVDestroy(&hmap)); in MatPtAPNumeric_MPIAIJ_MPIXAIJ_allatonce() [all …]
|
| /petsc/src/dm/label/ |
| H A D | dmlabel.c | 47 PetscCall(PetscHMapICreate(&(*label)->hmap)); in DMLabelCreate() 207 PetscCall(PetscHMapIGet(label->hmap, value, index)); in DMLabelLookupStratum() 211 PetscCall(PetscHMapIGetSize(label->hmap, &len)); in DMLabelLookupStratum() 214 PetscCall(PetscHMapIGet(label->hmap, value, &loc)); in DMLabelLookupStratum() 235 PetscHMapI hmap = label->hmap; in DMLabelNewStratum() local 274 PetscCall(PetscHMapISet(hmap, value, v)); in DMLabelNewStratum() 359 PetscHMapI hmap = label->hmap; in DMLabelAddStrata() local 375 PetscCall(PetscHMapISet(hmap, values[v], v)); in DMLabelAddStrata() 534 PetscCall(PetscHMapIReset(label->hmap)); in DMLabelReset() 563 PetscCall(PetscHMapIDestroy(&(*label)->hmap)); in DMLabelDestroy() [all …]
|
| /petsc/src/dm/dt/interface/ |
| H A D | dtweakform.c | 291 static PetscErrorCode PetscWeakFormRewriteKeys_Internal(PetscWeakForm wf, PetscHMapForm hmap, DMLab… in PetscWeakFormRewriteKeys_Internal() argument 298 PetscCall(PetscHMapFormGetSize(hmap, &n)); in PetscWeakFormRewriteKeys_Internal() 300 PetscCall(PetscHMapFormGetKeys(hmap, &off, keys)); in PetscWeakFormRewriteKeys_Internal() 307 …PetscCall(PetscWeakFormGetFunction_Private(wf, hmap, keys[i].label, keys[i].value, keys[i].field, … in PetscWeakFormRewriteKeys_Internal() 318 …PetscCall(PetscWeakFormGetFunction_Private(wf, hmap, keys[i].label, keys[i].value, keys[i].field, … in PetscWeakFormRewriteKeys_Internal() 321 …PetscCall(PetscWeakFormSetFunction_Private(wf, hmap, keys[i].label, values[v], keys[i].field, keys… in PetscWeakFormRewriteKeys_Internal() 324 …if (clear) PetscCall(PetscWeakFormSetFunction_Private(wf, hmap, keys[i].label, keys[i].value, keys… in PetscWeakFormRewriteKeys_Internal() 359 static PetscErrorCode PetscWeakFormReplaceLabel_Internal(PetscWeakForm wf, PetscHMapForm hmap, DMLa… in PetscWeakFormReplaceLabel_Internal() argument 368 PetscCall(PetscHMapFormGetSize(hmap, &n)); in PetscWeakFormReplaceLabel_Internal() 370 PetscCall(PetscHMapFormGetKeys(hmap, &off, keys)); in PetscWeakFormReplaceLabel_Internal() [all …]
|