xnn.common.deploy.domain.choose_grid#
- xnn.common.deploy.domain.choose_grid(n_domains, widths, halo)[source]#
The grid of
n_domainssub-domains that evaluates the fewest ghosts.Every cut axis adds a shell of thickness
haloon both sides of a sub-domain; the grid minimizing the evaluated volume relative to the owned volume is returned.- Parameters:
- Returns:
Sub-domains along the three axes, with product
n_domains.- Return type: