template<std::size_t BlockSize = 4, typename Order = RowMajor>
struct Aleph::CA::Block_Synchronous_Update< BlockSize, Order >
Synchronous update over rotating sub-blocks.
The lattice is split into non-overlapping blocks of side BlockSize. Each step() updates all cells inside the active block index using the canonical synchronous rule (read from cur, write to nxt, swap), then advances the active block index. Cells outside the active block carry over unchanged.
After (n_blocks) steps every cell has been updated exactly once.
- Template Parameters
-
| BlockSize | side of the square (or cubic) block in cells. |
| Order | intra-block iteration order. |
Definition at line 463 of file tpl_ca_update_scheme.H.
template<std::size_t BlockSize = 4, typename Order = RowMajor>
template<typename Engine , typename Rule >
Execute one block-synchronous step.
- Template Parameters
-
| Engine | engine type providing current_buffer(), next_buffer(), swap_buffers(), neighborhood() and step_count(). |
| Rule | cell rule satisfying RuleLike<Rule, Lattice>. |
- Parameters
-
| [in,out] | e | engine reference. |
| [in] | r | rule reference. |
- Exceptions
-
| Any | exception propagated by the rule or the lattice. |
Definition at line 483 of file tpl_ca_update_scheme.H.
References Aleph::CA::apply_rule(), Aleph::CA::gather_neighbors(), j0(), k, r, and Aleph::CA::Lattice< Storage, Boundary >::rank.