Skip to content

Add flow-field physics regression tests#14

Merged
sergioald merged 1 commit into
mainfrom
flowfield-physics-regression-tests
Jul 9, 2026
Merged

Add flow-field physics regression tests#14
sergioald merged 1 commit into
mainfrom
flowfield-physics-regression-tests

Conversation

@sergioald

Copy link
Copy Markdown
Owner

Summary

Adds focused physics/regression tests for the free-flow solver without changing solver behaviour.

Tests added

  • Zero curvature gives zero migration velocity.
  • Free-flow response is linear in curvature amplitude.
  • NumPy serial and threaded mode accumulation agree.
  • Invalid backend names are rejected.
  • Optional Numba SL=0 backend agrees with NumPy when Numba is installed.
  • Optional Numba SL=1 discrepancy is documented as xfail until investigated.

Validation

python -m py_compile tests/test_flowfield_physics_regression.py tests/test_flowfield_backend_guardrails.py
python -m pytest tests/test_flowfield_physics_regression.py tests/test_flowfield_backend_guardrails.py
python -m pytest

@sergioald
sergioald merged commit 7c082ca into main Jul 9, 2026
3 checks passed
@sergioald
sergioald deleted the flowfield-physics-regression-tests branch July 9, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant