Key (keyType) related functions and kernels. More...
Functions | |
CUDA_CALLABLE_MEMBER void | key2Char (keyType key, integer maxLevel, char *keyAsChar) |
Convert a key to a char for printing. More... | |
CUDA_CALLABLE_MEMBER integer | key2proc (keyType key, SubDomainKeyTree *subDomainKeyTree) |
Convert the key to the corresponding process. More... | |
CUDA_CALLABLE_MEMBER keyType | lebesgue2hilbert (keyType lebesgue, integer maxLevel) |
Convert a Lebesgue key to a Hilbert key. More... | |
CUDA_CALLABLE_MEMBER keyType | lebesgue2hilbert (keyType lebesgue, int maxLevel, int level) |
Variables | |
DIM | |
Table needed to convert from Lebesgue to Hilbert keys. More... | |
const unsigned char | HilbertTable [12][8] |
Table needed to convert from Lebesgue to Hilbert keys. More... | |
Key (keyType) related functions and kernels.
CUDA_CALLABLE_MEMBER void KeyNS::key2Char | ( | keyType | key, |
integer | maxLevel, | ||
char * | keyAsChar | ||
) |
Convert a key to a char for printing.
[in] | key | Key to be converted |
[in] | maxLevel | maximum (tree) level |
[out] | keyAsChar | key as char |
Definition at line 5 of file subdomain.cu.
CUDA_CALLABLE_MEMBER integer KeyNS::key2proc | ( | keyType | key, |
SubDomainKeyTree * | subDomainKeyTree | ||
) |
Convert the key to the corresponding process.
The mapping from a key to a MPI process via ranges can be implemented by checking in between which successive entries of the range the key is located.
key | Key to be evaluated |
subDomainKeyTree | SubDomainKeyTree class instance |
Definition at line 17 of file subdomain.cu.
CUDA_CALLABLE_MEMBER keyType KeyNS::lebesgue2hilbert | ( | keyType | lebesgue, |
int | maxLevel, | ||
int | level | ||
) |
CUDA_CALLABLE_MEMBER keyType KeyNS::lebesgue2hilbert | ( | keyType | lebesgue, |
integer | maxLevel | ||
) |
KeyNS::DIM |
Table needed to convert from Lebesgue to Hilbert keys.
const unsigned char KeyNS::HilbertTable[12][8] |
Table needed to convert from Lebesgue to Hilbert keys.