Repository navigation
Test operators() after M4: full-length u0, nonlinear rejection message, stale comments - #57
Merged
Merged
Conversation
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests and documentation for
operators(pdesys, disc)on current master, plus three stale test comments. #52 broughtoperators()in with its nonlinear-term rejection and a full-lengthu0; two small follow-ups from #48 (au0length 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 newdirichlet = :eliminatetestset showing thatoperators()still returns the full-lengthu0(20 on a 4x3 P1 quadrilateral mesh) with 2.0 on the left-facet dofs and 0.0 on the right, whilelength(prob.u0) == length(ops.u0) - length(ops.prescribed)for theDAEProblem; and@test_throws "operators returns linear operators only"for heat with- u^3(an existingoccursin("nonlinear", ...)check covered the error but not the message). Theoperatorsdocstring insrc/frontend.jlnow quotes the threeArgumentErrormessages (nonlinear terms, time-dependent source, time-dependent Dirichlet data) and saysu0always holds every dof, including under:eliminate, where theDAEProblem's ownu0holds 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.jlno longer says the front end rejects nonlinear terms until M3's numeric path lands;test/Integration/linear.jlnow says periodic conditions are not supported, quoting the real message;test/shared/frontend_tests/errors.jlno 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,CoreandQApass; Codex approved (it reviewed the first version of the second commit; the only change since is dropping one clause from themol_comparison.jlcomment). 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