Afivo
0.3
|
This module contains methods to convert indices to morton numbers. More...
Functions/Subroutines | |
integer(morton_k) function, public | morton_from_ix2 (ix) |
Get morton number from ix(1:2) More... | |
integer function, dimension(2), public | morton_to_ix2 (m_ix) |
From morton number to ix(1:2) More... | |
integer(morton_k) function, public | morton_from_ix3 (ix) |
Get morton number from ix(1:3) More... | |
integer function, dimension(3), public | morton_to_ix3 (m_ix) |
Morton number to ix(1:3) More... | |
integer function, public | morton_bsearch (list, val) |
Binary search for a morton number in a list. Returns the index of val in list, or -1 if val is not found. More... | |
subroutine, public | morton_rank (XDONT, IRNGT) |
subroutine, public | print_bits (x) |
subroutine, public | print_bits_morton (x) |
Variables | |
integer, parameter, public | morton_k = selected_int_kind(15) |
Integer kind for morton number. More... | |
This module contains methods to convert indices to morton numbers.
integer(morton_k) function, public m_morton::morton_from_ix2 | ( | integer, dimension(2), intent(in) | ix | ) |
Get morton number from ix(1:2)
Definition at line 34 of file m_morton.f90.
integer function, dimension(2), public m_morton::morton_to_ix2 | ( | integer(morton_k), intent(in) | m_ix | ) |
From morton number to ix(1:2)
Definition at line 44 of file m_morton.f90.
integer(morton_k) function, public m_morton::morton_from_ix3 | ( | integer, dimension(3), intent(in) | ix | ) |
Get morton number from ix(1:3)
Definition at line 52 of file m_morton.f90.
integer function, dimension(3), public m_morton::morton_to_ix3 | ( | integer(morton_k), intent(in) | m_ix | ) |
Morton number to ix(1:3)
Definition at line 63 of file m_morton.f90.
integer function, public m_morton::morton_bsearch | ( | integer(morton_k), dimension(:), intent(in) | list, |
integer(morton_k), intent(in) | val | ||
) |
Binary search for a morton number in a list. Returns the index of val in list, or -1 if val is not found.
Definition at line 73 of file m_morton.f90.
subroutine, public m_morton::morton_rank | ( | integer(morton_k), dimension (:), intent(in) | XDONT, |
integer, dimension (:), intent(out) | IRNGT | ||
) |
Definition at line 156 of file m_morton.f90.
subroutine, public m_morton::print_bits | ( | integer, intent(in) | x | ) |
Definition at line 356 of file m_morton.f90.
subroutine, public m_morton::print_bits_morton | ( | integer(morton_k), intent(in) | x | ) |
Definition at line 369 of file m_morton.f90.
integer, parameter, public m_morton::morton_k = selected_int_kind(15) |
Integer kind for morton number.
Definition at line 15 of file m_morton.f90.