Skip to main content

Module two_phase

Module two_phase 

Source
Expand description

Two-phase stepping utilities inspired by FlameGPU2.

FlameGPU2’s stepping model separates agent computation into distinct phases via the layer system:

  1. Output phase: agents write messages (no reading)
  2. Spatial index build: messages are spatially sorted (PBM construction)
  3. Input phase: agents read messages and update state

This module provides helper functions (two_phase_brute_force, two_phase_spatial_2d, two_phase_spatial_3d) that automate this pattern for use with StandardModel and spatial messaging.

Structs§

TwoPhaseResult
Result of a two-phase step.

Functions§

two_phase_brute_force
Execute a two-phase step using brute-force messaging.
two_phase_spatial_2d
Execute a two-phase step using 2D spatial messaging.
two_phase_spatial_3d
Execute a two-phase step using 3D spatial messaging.