원클릭으로
numerical-parity
Comparing two calculations — reference vs conservation-law parity, bisect strategy, float32/64 tolerance
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Comparing two calculations — reference vs conservation-law parity, bisect strategy, float32/64 tolerance
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Before writing new code — search existing implementations, topical audits, READMEs, file-header caveats
After implementing — update file headers, README, topical audits; note duplication
Navigate and debug OrbitalWar / SpaceCraft — design, truss sim, combat, radiosity, orbits; hub to docs and tests
Diagnostic plots/visualizations — shared utilities, output paths, plot style conventions
Dedicated documentation work — OKF format, topical audits, extract-overview and inline-doc workflows
Writing new code — inventory-first, module-vs-script placement, no-new-files, STOP triggers for duplication
| name | numerical-parity |
| description | Comparing two calculations — reference vs conservation-law parity, bisect strategy, float32/64 tolerance |
| trigger | {"glob":["**/tests/**/*","**/*test*.py","**/*parity*.py","**/*check*.py","**/*debug*.py","**/test_*.sh","**/run_*.sh","**/*benchmark*.py"]} |
Define correctness before coding: Verify via parity checks against reference code, known analytical solutions, physical conservation laws, symmetry checks, or known physical limits.
Two modes of parity:
Reference parity — you have a trusted implementation (C++, Fortran). Match inputs, compare outputs component by component.
Conservation-law parity — no reference exists. Verify physical invariants instead:
|ΔP| < tol after one step with no external forces|ΔL| < tol for rotation-capable systemsInput-first
Component isolation
Synchronized tracing
if(id==0 && step==0)).Single-step
Tolerance discipline
When outputs differ, drill down systematically:
Stop and fix issues at each level before moving to the next.
Keep structural checks (indices, counts, topology maps) separate from floating-point parity:
NaN, infinity, or unexpected zeros.