From 4ecf50fca2ea80e44523be2ff740baa0ead27620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20S=C3=A6ther?= Date: Mon, 8 Jun 2026 20:58:42 +0200 Subject: [PATCH 1/3] docs: fix stale diagnostic_report.md refs; add test_microstrip.yaml to tree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove diagnostic_report.md entry from directory tree (file does not exist) - Remove its reference from the Validation section - Add test_microstrip.yaml to the examples/ tree; correct count 5 → 6 Co-Authored-By: Claude Sonnet 4.6 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 77beabf..a21e643 100644 --- a/README.md +++ b/README.md @@ -369,7 +369,6 @@ weeks/ ├── LICENSE # MIT license ├── Makefile # Build script ├── CLAUDE.md # Guidance for AI coding assistants -├── diagnostic_report.md # PEEC vs FastHenry discretization analysis ├── test.yaml # Active input file read by ./weeks │ ├── src/ # Source files (5 files, lowercase .c) @@ -385,10 +384,11 @@ weeks/ │ ├── calcl.h # Calculator header │ └── lpp.h # Partial inductance header │ -├── examples/ # YAML input examples (5 files) +├── examples/ # YAML input examples (6 files) │ ├── test.yaml # Default (FR4) │ ├── test_air.yaml # Air baseline │ ├── test_fr4.yaml # FR4 standard PCB +│ ├── test_microstrip.yaml # Single trace for Z0 cross-check │ ├── test_rogers4003.yaml # Rogers RO4003C │ └── test_single.yaml # Single trace (used by check-fasthenry) │ @@ -410,7 +410,7 @@ weeks/ To validate results: 1. **Compare against FastHenry**: Run `make check-fasthenry` for independent numerical validation of R/L values. -2. **Mesh Alignment & Accuracy**: When both solvers use uniform meshes (by setting `b: 1.0` in `weeks` to match FastHenry's uniform sub-segmentation in the harness), they match to within **2.3%** across all self and mutual resistance/inductance terms. See [diagnostic_report.md](diagnostic_report.md) and [docs/fasthenry-crosscheck.md](docs/fasthenry-crosscheck.md) for details. +2. **Mesh Alignment & Accuracy**: When both solvers use uniform meshes (by setting `b: 1.0` in `weeks` to match FastHenry's uniform sub-segmentation in the harness), they match to within **2.3%** across all self and mutual resistance/inductance terms. See [docs/fasthenry-crosscheck.md](docs/fasthenry-crosscheck.md) for details. 3. **Online calculators**: Cross-check with analytical formulas. ## Troubleshooting From 07e5641a5139a77147d6199b10b1e4fef0ce7a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20S=C3=A6ther?= Date: Mon, 8 Jun 2026 20:58:46 +0200 Subject: [PATCH 2/3] docs: add test_microstrip.yaml to INSTALL.md; fix dead link and date in YAML guide - INSTALL.md: add test_microstrip.yaml to the 'What You Get' file list - YAML_USER_GUIDE.md: remove dead YAML_MIGRATION_GUIDE.md reference - YAML_USER_GUIDE.md: update 'Last Updated' date to June 8, 2026 Co-Authored-By: Claude Sonnet 4.6 --- INSTALL.md | 1 + YAML_USER_GUIDE.md | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index dda8da6..eaabf01 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -52,6 +52,7 @@ Done! 🎉 - `test_air.yaml` - Air baseline - `test_fr4.yaml` - FR4 standard PCB - `test_rogers4003.yaml` - Rogers RO4003C +- `test_microstrip.yaml` - Single trace for Z0 cross-check (`make check-z0`) - `test_single.yaml` - Single trace (used by `make check-fasthenry`) **To try different materials**: diff --git a/YAML_USER_GUIDE.md b/YAML_USER_GUIDE.md index 4c0a4d4..7f9dcff 100644 --- a/YAML_USER_GUIDE.md +++ b/YAML_USER_GUIDE.md @@ -1081,7 +1081,6 @@ conductors: **In this package:** - `README.md` - Complete documentation - `examples/` - Working examples -- `YAML_MIGRATION_GUIDE.md` - Migration details **External resources:** - YAML specification: yaml.org @@ -1091,7 +1090,7 @@ conductors: --- **Version:** 1.0 -**Last Updated:** February 8, 2025 +**Last Updated:** June 8, 2026 **Format:** YAML 1.2 --- From 6aa06f3aeb9a97f8e583ad4d59f6eb39f6c80906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20S=C3=A6ther?= Date: Mon, 8 Jun 2026 20:58:52 +0200 Subject: [PATCH 3/3] fix: 'Can not' -> 'Cannot' in error message Co-Authored-By: Claude Sonnet 4.6 --- src/weeks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/weeks.c b/src/weeks.c index 4b510f9..aa094eb 100644 --- a/src/weeks.c +++ b/src/weeks.c @@ -37,7 +37,7 @@ int main(void) if ((fp = fopen("test.yaml", "r")) == NULL) { - fprintf(stderr, "ERROR: Can not open input file '%s'\n", "test.yaml"); + fprintf(stderr, "ERROR: Cannot open input file '%s'\n", "test.yaml"); fprintf(stderr, "Please create a YAML input file with conductor definitions.\n"); exit(EXIT_FAILURE); }