Commit ca2958b
Address review: infinity norm, drop dead tolerance term, trim comments
- test_matrix_assembly_rectangular compares element-wise now, with
PETSc.NormType.INFINITY on both the difference and the norm the
tolerance scales with, and SAME_NONZERO_PATTERN in the axpy: the nest
submatrix and the monolithic matrix are assembled from the same form,
so a differing pattern would itself be a failure worth seeing.
- The 'max(1.0e-10, 1.0e6 * eps**2)' in the interpolation tests is gone.
The reviewer is right that it does no work: the term wins only in
single precision, where it gives 1.4e-8, but the worst residual
measured there is 9.75e-12, already inside the plain 1e-10. The
original constants are restored unchanged -- the parametrisation over
the scalar type is what those tests gained, not a new tolerance. 174
pass.
- The vtkhdf comment is replaced by a reference to issue #4415, which
records the degree-3 round-trip discrepancy properly.
- Comments trimmed throughout, per AGENTS.md: an explanation that runs to
five lines beside a one-line assertion is noise, and the reasoning
belongs in the pull request or an issue.
mypy still passes on all three targets, verified in a container matching
the CI leg.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent d895810 commit ca2958b
21 files changed
Lines changed: 1464 additions & 102 deletions
File tree
- .github/workflows
- spack-config
- python
- demo
- test/unit
- fem
- io
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
227 | 221 | | |
228 | 222 | | |
229 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | 16 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
38 | 23 | | |
39 | 24 | | |
40 | 25 | | |
| |||
0 commit comments