Skip to content

Test operators() after M4: full-length u0, nonlinear rejection message, stale comments - #57

Merged
xtalax merged 5 commits into
masterfrom
test/operators-after-m4
Nov 5, 2026
Merged

xtalax merged 5 commits into
masterfrom
test/operators-after-m4

Conversation

@xtalax-droid

Copy link
Copy Markdown
Collaborator

Tests and documentation for operators(pdesys, disc) on current master, plus three stale test comments. #52 brought operators() in with its nonlinear-term rejection and a full-length u0; two small follow-ups from #48 (a u0 length assertion and a docstring rewording) were pushed after #52 was built, so this PR carries the versions that fit master.

Commit 1, tests and docstring. In test/shared/frontend_tests/operators.jl: length(ops.u0) == size(ops.K, 1) in the Dirichlet testset; a new dirichlet = :eliminate testset showing that operators() still returns the full-length u0 (20 on a 4x3 P1 quadrilateral mesh) with 2.0 on the left-facet dofs and 0.0 on the right, while length(prob.u0) == length(ops.u0) - length(ops.prescribed) for the DAEProblem; and @test_throws "operators returns linear operators only" for heat with - u^3 (an existing occursin("nonlinear", ...) check covered the error but not the message). The operators docstring in src/frontend.jl now quotes the three ArgumentError messages (nonlinear terms, time-dependent source, time-dependent Dirichlet data) and says u0 always holds every dof, including under :eliminate, where the DAEProblem's own u0 holds the free dofs only. These tests pass on unmodified master (42/42 in the operators test file before the docstring change), so they are characterization tests that pin the behaviour; they do not fail before.

Commit 2, comment-only: test/shared/molcomparison_tests/mol_comparison.jl no longer says the front end rejects nonlinear terms until M3's numeric path lands; test/Integration/linear.jl now says periodic conditions are not supported, quoting the real message; test/shared/frontend_tests/errors.jl no longer says "Every M2 error path". Spec citations and historical headers are left alone.

Local results on Julia 1.12: Runic 1.13 clean on all five files; GROUP=Frontend, Core and QA pass; Codex approved (it reviewed the first version of the second commit; the only change since is dropping one clause from the mol_comparison.jl comment). CI is billing-blocked.


🤖 Posted by an AI agent · harness: Claude Code 2.1.312 · model: claude-sonnet-5-5
Review: unreviewed
Session: 43e03fde-3384-4386-bae9-03e81f19ba7c

t and others added 2 commits November 3, 2026 23:58
Adds tests for the nonlinear-term ArgumentError, the full-length u0 (also under dirichlet = :eliminate, where the problem's u0 drops the prescribed dofs), and updates the operators docstring to the behaviour on master.

Agent-Harness: Claude Code 2.1.312
Agent-Model: claude-sonnet-5-5
Agent-Session: 43e03fde-3384-4386-bae9-03e81f19ba7c
Agent-Review: unreviewed
Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Comment-only: nonlinear terms are supported, periodic conditions are rejected with a fixed message, and errors.jl describes its coverage.

Agent-Harness: Claude Code 2.1.312
Agent-Model: claude-sonnet-5-5
Agent-Session: 43e03fde-3384-4386-bae9-03e81f19ba7c
Agent-Review: unreviewed
Co-authored-by: Claude Code <agent@noreply.juliahub.com>
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark Results (Julia v1)

Time benchmarks
master a755644... master / a755644...
construction/heat P1 10x10 4.68 ± 0.34 ms 4.11 ± 0.24 ms 1.14 ± 0.11
construction/heat P1 20x20 6.74 ± 0.94 ms 5.82 ± 0.57 ms 1.16 ± 0.2
time_to_load 4.2 ± 0.19 s 3.94 ± 0.029 s 1.07 ± 0.048
Memory benchmarks
master a755644... master / a755644...
construction/heat P1 10x10 0.0393 M allocs: 2.11 MB 0.0393 M allocs: 2.11 MB 1
construction/heat P1 20x20 0.0702 M allocs: 4.73 MB 0.0702 M allocs: 4.73 MB 1
time_to_load 0.2 k allocs: 11.8 kB 0.2 k allocs: 11.8 kB 1

t and others added 3 commits November 5, 2026 02:19
Agent-Harness: Claude Code 2.1.312
Agent-Model: claude-sonnet-5-5
Agent-Session: 43e03fde-3384-4386-bae9-03e81f19ba7c
Agent-Review: unreviewed
Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Agent-Harness: Claude Code 2.1.318
Agent-Model: claude-sonnet-5-5
Agent-Session: 43e03fde-3384-4386-bae9-03e81f19ba7c
Agent-Review: unreviewed
Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Agent-Harness: Claude Code 2.1.318
Agent-Model: claude-sonnet-5-5
Agent-Session: 43e03fde-3384-4386-bae9-03e81f19ba7c
Agent-Review: unreviewed
Co-authored-by: Claude Code <agent@noreply.juliahub.com>
@xtalax
xtalax merged commit 31624a4 into master Nov 5, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants