fix: normalize closed-form Smagorinsky strain magnitude

This commit is contained in:
TRON committed 2026-10-18 01:14:24 -07:00
1 parent 9805383f9c
commit 5465832fe5
4 files changed
+178 -20

No files matched your search

+3 -16
View File
@@ -41,9 +41,9 @@ class GuardTests(unittest.TestCase):
with self.assertRaisesRegex(RuntimeError, "velocity/profile"):
decode_macros(invalid, w, cx, cy)
def test_baseline_pins(self):
def test_current_corrected_pins(self):
self.assertEqual(
source_guard(ROOT, "baseline")["base_commit"],
source_guard(ROOT, "corrected")["base_commit"],
"cd3a657f9d3833e812c3cca173525f165b48710a",
)
@@ -55,20 +55,7 @@ class GuardTests(unittest.TestCase):
dest = root / name
dest.parent.mkdir(parents=True, exist_ok=True)
shutil.copyfile(ROOT / name, dest)
# Rebuild the reviewed candidate from actual pinned headers, not fixtures.
candidate = root / "header_candidate"
subprocess.run(
[
sys.executable,
str(HERE / "les/prepare.py"),
"--repo",
str(ROOT),
"--output-dir",
str(candidate),
],
check=True,
)
shutil.copyfile(candidate / "patched" / HEADER, root / HEADER)
# Current production is the corrected variant; archived baseline pins stay frozen.
with patch(
"run_uniform_les_flow.subprocess.check_output",
return_value="isolated-fixture\n",