grids.base.GridBase.chunk_size#

property GridBase.chunk_size: DomainDimensions#

The size of each chunk along every axis, if chunking is enabled.

Chunking divides the grid into smaller subdomains (chunks) for more efficient memory management or parallelization. Each chunk has this shape (excluding ghost cells).

Returns:

Size of a single chunk along each axis.

Return type:

DomainDimensions

Raises:

GridInitializationError – If chunking is not enabled for this grid.