style(simulation): cargo fmt on the fix round + governance amendment typo (Hoshe nit)

This commit is contained in:
2026-07-22 00:51:22 +02:00
parent 0159a63cc2
commit 1ce4085901
6 changed files with 45 additions and 36 deletions
+4 -26
View File
@@ -80,16 +80,8 @@ fn time_derive_sweep(
for col in 0..grid_side {
let wx = col as f64 * step_m;
let wy = row as f64 * step_m;
let prof = derive_at_metres(
seed,
body_id,
params,
ta,
wx,
wy,
climate,
min_wavelength_m,
);
let prof =
derive_at_metres(seed, body_id, params, ta, wx, wy, climate, min_wavelength_m);
// Prevent the optimizer from hoisting the call out of the loop.
std::hint::black_box(prof.elev_q);
}
@@ -136,14 +128,7 @@ fn bench_derive_at_metres_district_and_quarter_spacing() {
// of them; recorded for the design doc's requested (district, cutoff
// 2048) combination regardless).
let (elapsed, per_cell_ns) = time_derive_sweep(
seed,
"bench",
&params,
&ta,
&climate,
grid_side,
district_m,
2_048.0,
seed, "bench", &params, &ta, &climate, grid_side, district_m, 2_048.0,
);
println!(
"district spacing, cutoff=2048m: {:>8.2} ms total, {:>7.1} ns/cell ({:.3} µs/cell)",
@@ -155,14 +140,7 @@ fn bench_derive_at_metres_district_and_quarter_spacing() {
// Quarter spacing (512 m), cutoff 512 m — the T-1150 Option B rung: full
// reclassification at quarter spacing with the matching octave cutoff.
let (elapsed, per_cell_ns) = time_derive_sweep(
seed,
"bench",
&params,
&ta,
&climate,
grid_side,
quarter_m,
512.0,
seed, "bench", &params, &ta, &climate, grid_side, quarter_m, 512.0,
);
println!(
"quarter spacing, cutoff=512m: {:>8.2} ms total, {:>7.1} ns/cell ({:.3} µs/cell)",