Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ca_multi_field_test.cc File Reference

Phase 14 tests for multi-field CA lattices, rules and engine. More...

#include <array>
#include <cmath>
#include <cstdint>
#include <tuple>
#include <vector>
#include <gtest/gtest.h>
#include <ca-traits.H>
#include <tpl_ca_continuous_rules.H>
#include <tpl_ca_engine.H>
#include <tpl_ca_lattice.H>
#include <tpl_ca_multi_field_engine.H>
#include <tpl_ca_multi_field_lattice.H>
#include <tpl_ca_multi_field_rule.H>
#include <tpl_ca_neighborhood.H>
#include <tpl_ca_rule.H>
#include <tpl_ca_storage.H>
Include dependency graph for ca_multi_field_test.cc:

Go to the source code of this file.

Functions

 TEST (CAMultiField, AoSAndSoAProduceIdenticalFramesUnderDiscreteRule)
 
 TEST (CAMultiField, SoAFieldExposesMonoFieldLatticeForLegacyEngine)
 
 TEST (CAMultiField, GrayScottMonolithicAndMultiFieldAgreeWithinTolerance)
 
 TEST (CAMultiField, LotkaVolterraStaysBoundedAndOscillates)
 
 TEST (CAMultiField, FieldSliceRulePreservesOtherFields)
 

Detailed Description

Phase 14 tests for multi-field CA lattices, rules and engine.

Coverage:

  • AoS vs SoA equivalence on a discrete predator-prey rule (frame must match bit-by-bit at every step).
  • Per-field SoA buffer is reachable as a regular Lattice and can be handed to the legacy Synchronous_Engine.
  • Lotka-Volterra continuous rule on a 64×64 toroidal grid stays bounded and exhibits a population cycle.
  • Gray-Scott reaction-diffusion migrated from the Phase 9 monolithic Reaction_Diffusion_Cell rule to a multi-field (u, v) rule produces frames that match the monolithic output to within a tight numerical tolerance.
  • Field_Slice_Rule propagates the untouched fields verbatim.

Definition in file ca_multi_field_test.cc.

Function Documentation

◆ TEST() [1/5]

TEST ( CAMultiField  ,
AoSAndSoAProduceIdenticalFramesUnderDiscreteRule   
)

◆ TEST() [2/5]

TEST ( CAMultiField  ,
FieldSliceRulePreservesOtherFields   
)

◆ TEST() [3/5]

◆ TEST() [4/5]

◆ TEST() [5/5]

TEST ( CAMultiField  ,
SoAFieldExposesMonoFieldLatticeForLegacyEngine   
)