MFC
Exascale flow solver
Loading...
Searching...
No Matches
m_box Module Reference

Box type, per-rank partition arithmetic (one box per rank) and the Morton key. More...

Functions/Subroutines

pure integer function, dimension(0:n_parts), public f_equal_splits (g, n_parts)
 Cumulative equal-cell offsets for g cells over n_parts ranks, remainder to the first ranks (MFC's block distribution).
pure type(t_box) function, public f_box_from_splits (off_x, off_y, off_z, coords)
 This rank's box from per-axis cumulative offsets and its 0-based Cartesian coords (collapsed axes: off_d = [0,1]).
pure integer(kind=8) function, public f_morton (ix, iy, iz)
 3D Morton (Z-order) key of (ix, iy, iz), 21 bits/dim; negative coords clamp to 0.

Detailed Description

Box type, per-rank partition arithmetic (one box per rank) and the Morton key.

Function/Subroutine Documentation

◆ f_box_from_splits()

pure type(t_box) function, public m_box::f_box_from_splits ( integer, dimension(0:), intent(in) off_x,
integer, dimension(0:), intent(in) off_y,
integer, dimension(0:), intent(in) off_z,
integer, dimension(3), intent(in) coords )

This rank's box from per-axis cumulative offsets and its 0-based Cartesian coords (collapsed axes: off_d = [0,1]).

Definition at line 398 of file m_box.fpp.f90.

◆ f_equal_splits()

pure integer function, dimension(0:n_parts), public m_box::f_equal_splits ( integer, intent(in) g,
integer, intent(in) n_parts )

Cumulative equal-cell offsets for g cells over n_parts ranks, remainder to the first ranks (MFC's block distribution).

Definition at line 383 of file m_box.fpp.f90.

◆ f_morton()

pure integer(kind=8) function, public m_box::f_morton ( integer, intent(in) ix,
integer, intent(in) iy,
integer, intent(in) iz )

3D Morton (Z-order) key of (ix, iy, iz), 21 bits/dim; negative coords clamp to 0.

Definition at line 411 of file m_box.fpp.f90.

Here is the caller graph for this function: