Repository navigation
Add exemplary end-to-end Interface tests through the public interface - #53
Merged
Merged
Conversation
…ublic API Heat in 1D and 2D (P1/P2, triangles and quadrilaterals, constant and time-dependent Dirichlet), Neumann, Robin and mixed sides, solution access and parameters, and the documented rejections, each compared with a manufactured solution. 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>
… source-term Interface cases Manufactured solutions with sources in 1D and 2D, P2 elements on triangles and quadrilaterals, divergence and non-divergence variable diffusivity, linear and coupled reaction terms, and the documented rejection of a nonlinear reaction. 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.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>
… curved geometry, parameters Five self-contained files in the Interface group, each case narrated with its PDE, domain, boundary conditions and exact solution. 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>
…ace README table 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.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>
…EADME The two P2 convergence-rate rows had identical descriptions. 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>
Steady problems, nonlinear terms, time-last variables, periodic-free options and dirichlet = :eliminate are supported on master now, so rejections.jl asserts the rejections that remain (the current messages) and reaction_diffusion.jl solves the logistic reaction against a manufactured solution at rate 3. 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>
Steady problems, time-last variables, observed expressions, dirichlet = :eliminate, nonlinear terms, unequal-order and region fields, SUPG, a Kovasznay Navier-Stokes case, and the facet_dofs / operators data API, each in the one-narrated-testset style of the group. Adds a steady l2_error method to the shared helpers and updates the README case table. 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>
xtalax-droid
marked this pull request as ready for review
November 3, 2026 23:16
typos reads `ue` as a misspelling of "use" or "due" (reaction_diffusion.jl, lines 70 to 72). The names are now u_sym and v_sym. 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>
DABDF2 at OrdinaryDiffEqBDF 2.4.0 returns Unstable on the heat problem of
test/Interface/solver_choices.jl (t = 1e-7, error estimate about -548) in the
Downgrade job. Upstream fixed it in SciML/OrdinaryDiffEq.jl PR #3995 ("Fix
DABDF2 adaptive error estimate on DAEs", Unstable regression #3960): the
second-order startup step is a DImplicitEuler step that never wrote fsallast,
so the first BDF2 step used a stale fsalfirst. Bisect with only
OrdinaryDiffEqBDF changed: 2.4.0 Unstable (Julia 1.10.12 and 1.12.1), 2.4.1
and every later version Success (l2 1.15e-5, 898 steps). OrdinaryDiffEqBDF is
a test-only dependency, so this raises the floor of the test environment.
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>
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.
Adds an
Interfacetest group: end-to-end examples that go through the public interface only (aPDESystembuilt with the ModelingToolkit macros,FEMDiscretization,discretize,solve, then a comparison with an exact or manufactured solution), in the style of MethodOfLines.jl's interface tests. Each case is one narrated testset: a comment block states the PDE, domain, boundary and initial conditions, the exact solution and what it shows, and the testset name reads as a sentence. Cases stay under about 40 lines. Shared helpers are small functions (l2_error,observed_rate,sample_points) intest/shared/interface_helpers.jl.test/Interface/README.mdexplains the layout and how to add a case; the group is registered intest/test_groups.tomland runs asGROUP=Interface.This branch is current with master ee31958 (M4 included): the rejection cases were rewritten for the messages master gives now, and the M4 features have their own files: steady problems, time-last variables, observed expressions,
dirichlet = :eliminate, nonlinear terms, unequal orders and field regions, SUPG, a Kovasznay Navier-Stokes case, and the metadata andoperatorsAPI.Local results: 26 files pass on Julia 1.12 and on lts 1.10.
GROUP=CoreandGROUP=QApass, Runic 1.13 is clean, Codex approved with no findings.advection_diffusion.jlis the only file over 90 s on 1.12, and that is JIT compile (59 s for its first testset; the solves take 3 to 6 s). CI is currently billing-blocked, so these are local results only.Cases:
heat_1d.jlheat_1d.jlheat_2d.jlheat_2d.jlheat_2d.jlneumann_robin.jlneumann_robin.jlk,αneumann_robin.jlneumann_robin.jlsolution_access.jlsol[u],sol[x],sol[y]shapesDsolution_access.jlsol(t, x, y; dv)points, grids, outside the meshsolution_access.jlsolution_access.jlheat_3d.jlheat_3d.jlheat_3d.jlelement_order.jlelement_order.jlsolver_choices.jlsolver_choices.jlsaveatsolver_choices.jladvection_diffusion.jladvection_diffusion.jladvection_diffusion.jladvection_diffusion.jlreaction_diffusion.jlreaction_diffusion.jlreaction_diffusion.jlreaction_diffusion.jlvariable_coefficient_diffusion.jlDx(a Dx(u)), rate 3variable_coefficient_diffusion.jla Dxx(u), rate 3variable_coefficient_diffusion.jlDx(a Dx(u)) + Dy(a Dy(u)), rate 3, triangles and quadrilateralsvariable_coefficient_diffusion.jla (Dxx(u) + Dyy(u)), rate 3, triangles and quadrilateralssource_terms.jlsource_terms.jlsource_terms.jlcoupled_systems.jlcoupled_systems.jlcoupled_systems.jlcoupled_systems.jlwave_first_order.jlwave_first_order.jlcinpswave_first_order.jlmesh_domains.jlmesh_domains.jlk,αcurved_geometry.jlQuadraticTrianglecellsparameters.jlD,A,gfrompsfor three parameter setsparameters.jlqfrompsparameters.jlDand reaction rateλfrompssteady.jlsteady.jlsteady.jlk(u) = 1 + u^2, rate 3time_last_variables.jlu(x, y, t)andu(t, x, y)give the same solution, time axis lasttime_last_variables.jlobserved_expressions.jlsol[expr]andsol(t, x, y; dv = expr)Deliminate.jldirichlet = :eliminateagainst:algebraiceliminate.jldirichlet = :eliminateon a steady problemnonlinear.jlu u_x, rate 3nonlinear.jlk(u) = 1 + u^2, rate 3multifield_spaces.jlmultifield_spaces.jlsupg.jlτis nodally exactsupg.jlτwith explicit velocity, andτ(hK, b)navier_stokes.jlmetadata_and_operators.jlfacet_dofs,dof_coordinates,cell_dofsmetadata_and_operators.jloperatorsgives the matrices for a hand-made steady solverejections.jloperatorsStill rejected on master, so not covered as solved cases (the first group is asserted as rejections in
rejections.jl): periodic conditions,codegen = :mtk, time-dependent coefficients in the mass or stiffness operator, third-order spatial and second-order time operators. Not covered at all: a SUPG velocity or tau that references a PDESystem parameter or depends on the state, and mixed cell types without aspacesentry per field. P3 on a line gives a raw FerriteMethodError(no cubic Lagrange line in Ferrite) with no package message.remakedoes not reassemble operators, so parameter cases build a newPDESystemper value.docs/src/equation_classes.mdandboundary_conditions.mdstill say steady problems,:eliminate, periodic conditions and SUPG "land in M3/M4"; that wording is stale on master and not changed here.🤖 Posted by an AI agent · harness: Claude Code 2.1.312 · model: claude-sonnet-5-5
Review: unreviewed
Session: 43e03fde-3384-4386-bae9-03e81f19ba7c