Lines Matching refs:ht
32 static PetscErrorCode PCPatchConstruct_Star(void *vpatch, DM dm, PetscInt point, PetscHSetI ht) in PCPatchConstruct_Star() argument
38 PetscCall(PetscHSetIClear(ht)); in PCPatchConstruct_Star()
40 PetscCall(PetscHSetIAdd(ht, point)); in PCPatchConstruct_Star()
43 for (si = 0; si < starSize * 2; si += 2) PetscCall(PetscHSetIAdd(ht, star[si])); in PCPatchConstruct_Star()
48 static PetscErrorCode PCPatchConstruct_Vanka(void *vpatch, DM dm, PetscInt point, PetscHSetI ht) in PCPatchConstruct_Vanka() argument
57 PetscCall(PetscHSetIClear(ht)); in PCPatchConstruct_Vanka()
59 PetscCall(PetscHSetIAdd(ht, point)); in PCPatchConstruct_Vanka()
81 PetscCall(PetscHSetIAdd(ht, newpoint)); in PCPatchConstruct_Vanka()
89 static PetscErrorCode PCPatchConstruct_Pardecomp(void *vpatch, DM dm, PetscInt point, PetscHSetI ht) in PCPatchConstruct_Pardecomp() argument
102 PetscCall(PetscHSetIClear(ht)); in PCPatchConstruct_Pardecomp()
125 PetscCall(PetscHSetIAdd(ht, opoint)); in PCPatchConstruct_Pardecomp()
135 PetscCall(PetscHSetIGetSize(ht, &htsize)); in PCPatchConstruct_Pardecomp()
137 PetscCall(PetscHSetIGetElems(ht, &index, htpoints)); in PCPatchConstruct_Pardecomp()
153 PetscCall(PetscHSetIAdd(ht, closstarp)); in PCPatchConstruct_Pardecomp()
165 static PetscErrorCode PCPatchConstruct_User(void *vpatch, DM dm, PetscInt point, PetscHSetI ht) in PCPatchConstruct_User() argument
174 PetscCall(PetscHSetIClear(ht)); in PCPatchConstruct_User()
182 PetscCall(PetscHSetIAdd(ht, ownedpoint)); in PCPatchConstruct_User()
736 static PetscErrorCode PCPatchCompleteCellPatch(PC pc, PetscHSetI ht, PetscHSetI cht) in PCPatchCompleteCellPatch() argument
755 PetscHashIterBegin(ht, hi); in PCPatchCompleteCellPatch()
756 while (!PetscHashIterAtEnd(ht, hi)) { in PCPatchCompleteCellPatch()
757 PetscHashIterGetKey(ht, hi, point); in PCPatchCompleteCellPatch()
758 PetscHashIterNext(ht, hi); in PCPatchCompleteCellPatch()
922 PetscHSetI ht = NULL, cht = NULL; in PCPatchCreateCellPatches() local
932 PetscCall(PetscHSetICreate(&ht)); in PCPatchCreateCellPatches()
1001 PetscCall(patch->patchconstructop((void *)patch, dm, v, ht)); in PCPatchCreateCellPatches()
1002 PetscCall(PCPatchCompleteCellPatch(pc, ht, cht)); in PCPatchCreateCellPatches()
1075 PetscCall(patch->patchconstructop((void *)patch, dm, v, ht)); in PCPatchCreateCellPatches()
1076 PetscCall(PCPatchCompleteCellPatch(pc, ht, cht)); in PCPatchCreateCellPatches()
1137 PetscCall(PetscHSetIDestroy(&ht)); in PCPatchCreateCellPatches()
1221 PetscHMapI ht; in PCPatchCreateCellPatchDiscretisationInfo() local
1288 PetscCall(PetscHMapICreate(&ht)); in PCPatchCreateCellPatchDiscretisationInfo()
1297 PetscCall(PetscHMapIClear(ht)); in PCPatchCreateCellPatchDiscretisationInfo()
1400 PetscCall(PetscHMapIGet(ht, globalDof + l, &localDof)); in PCPatchCreateCellPatchDiscretisationInfo()
1403 PetscCall(PetscHMapISet(ht, globalDof + l, localDof)); in PCPatchCreateCellPatchDiscretisationInfo()
1451 PetscCall(PetscHMapIGetSize(ht, &dof)); in PCPatchCreateCellPatchDiscretisationInfo()
1476 PetscCall(PetscHMapIClear(ht)); in PCPatchCreateCellPatchDiscretisationInfo()
1502 if (localDof >= 0) PetscCall(PetscHMapISet(ht, globalDof, localDof)); in PCPatchCreateCellPatchDiscretisationInfo()
1518 PetscHashIterBegin(ht, hi); in PCPatchCreateCellPatchDiscretisationInfo()
1519 while (!PetscHashIterAtEnd(ht, hi)) { in PCPatchCreateCellPatchDiscretisationInfo()
1522 PetscHashIterGetKey(ht, hi, globalDof); in PCPatchCreateCellPatchDiscretisationInfo()
1523 PetscHashIterGetVal(ht, hi, localDof); in PCPatchCreateCellPatchDiscretisationInfo()
1525 PetscHashIterNext(ht, hi); in PCPatchCreateCellPatchDiscretisationInfo()
1556 PetscCall(PetscHMapIGet(ht, globalDof, &localDof)); in PCPatchCreateCellPatchDiscretisationInfo()
1598 PetscCall(PetscHMapIGet(ht, globalDof, &localDof)); in PCPatchCreateCellPatchDiscretisationInfo()
1625 PetscCall(PetscHMapIDestroy(&ht)); in PCPatchCreateCellPatchDiscretisationInfo()