Lines Matching refs:id
5 PetscInt id; member
33 #define Id(h, loc) ((h)->base[loc].id)
37 PetscInt id, val; in Swap() local
38 id = Id(h, loc); in Swap()
40 h->base[loc].id = Id(h, loc2); in Swap()
42 h->base[loc2].id = id; in Swap()
73 h->base[0].id = -1; in PetscHeapCreate()
79 PetscErrorCode PetscHeapAdd(PetscHeap h, PetscInt id, PetscInt val) in PetscHeapAdd() argument
87 h->base[loc].id = id; in PetscHeapAdd()
98 PetscErrorCode PetscHeapPop(PetscHeap h, PetscInt *id, PetscInt *val) in PetscHeapPop() argument
104 *id = h->base[0].id; in PetscHeapPop()
109 *id = h->base[1].id; in PetscHeapPop()
115 h->base[1].id = Id(h, loc); in PetscHeapPop()
127 PetscErrorCode PetscHeapPeek(PetscHeap h, PetscInt *id, PetscInt *val) in PetscHeapPeek() argument
131 *id = h->base[0].id; in PetscHeapPeek()
136 *id = h->base[1].id; in PetscHeapPeek()
141 PetscErrorCode PetscHeapStash(PetscHeap h, PetscInt id, PetscInt val) in PetscHeapStash() argument
147 h->base[loc].id = id; in PetscHeapStash()
156 PetscInt id = Id(h, h->stash), value = Value(h, h->stash); in PetscHeapUnstash() local
158 PetscCall(PetscHeapAdd(h, id, value)); in PetscHeapUnstash()