Lines Matching refs:ZCode
5 typedef uint64_t ZCode; typedef
7 PETSC_HASH_SET(ZSet, ZCode, PetscHash_UInt64, PetscHashEqual)
17 ZCode *zstarts;
31 static unsigned ZCodeSplit1(ZCode z) in ZCodeSplit1()
44 static ZCode ZEncode1(unsigned t) in ZEncode1()
46 ZCode z = t; in ZEncode1()
58 static Ijk ZCodeSplit(ZCode z) in ZCodeSplit()
69 static ZCode ZEncode(Ijk c) in ZEncode()
71 …ZCode z = (ZEncode1((unsigned int)c.i) << 2) | (ZEncode1((unsigned int)c.j) << 1) | ZEncode1((unsi… in ZEncode()
85 static ZCode ZStepOct(ZCode z) in ZStepOct()
88 ZCode step = 07; in ZStepOct()
108 ZCode z = 0; in ZLayoutCreate()
114 ZCode skip = ZStepOct(z); // optimistically attempt a longer step in ZLayoutCreate()
115 for (ZCode s = skip;; s >>= 3) { in ZLayoutCreate()
118 while (count + s + 1 > (ZCode)elems_needed) s >>= 3; // Shrink the octet in ZLayoutCreate()
184 for (ZCode rz = layout->zstarts[rank]; rz < layout->zstarts[rank + 1]; rz++) { in ZLayoutElementsOnRank()
192 static PetscInt ZCodeFind(ZCode key, PetscInt n, const ZCode X[]) in ZCodeFind()
210 …oxMesh_Tensor_SFC_Periodicity_Private(DM dm, const ZLayout *layout, const ZCode *vert_z, PetscSegB… in DMPlexCreateBoxMesh_Tensor_SFC_Periodicity_Private()
229 ZCode *donor_verts, *donor_minz; in DMPlexCreateBoxMesh_Tensor_SFC_Periodicity_Private()
243 ZCode minz = donor_verts[i * csize]; in DMPlexCreateBoxMesh_Tensor_SFC_Periodicity_Private()
254 ZCode z = donor_minz[i]; in DMPlexCreateBoxMesh_Tensor_SFC_Periodicity_Private()
260 for (ZCode rz = layout->zstarts[remote_rank]; rz < layout->zstarts[remote_rank + 1]; rz++) { in DMPlexCreateBoxMesh_Tensor_SFC_Periodicity_Private()
1211 for (ZCode z = layout.zstarts[rank]; z < layout.zstarts[rank + 1]; z++) { in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1224 ZCode v = ZEncode(nloc); in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1230 ZCode *vert_z; in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1243 for (ZCode z = layout.zstarts[rank]; z < layout.zstarts[rank + 1]; z++) { in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1253 ZCode v = ZEncode(nloc); in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1278 ZCode z = vert_z[owned_verts + i]; in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1289 for (ZCode rz = layout.zstarts[remote_rank]; rz < layout.zstarts[remote_rank + 1]; rz++) { in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1350 … PetscCall(PetscSegBufferCreate(sizeof(ZCode), 64 * PetscPowInt(2, dim), &donor_face_closure[i])); in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1384 ZCode *zput; in DMPlexCreateBoxMesh_Tensor_SFC_Internal()