Repository navigation
Export Weighted and document axisymmetric weighted integration by parts - #66
Merged
Merged
Conversation
ibp = Dict(eq => Weighted(r)) needed using PDEBase.StrongForm: Weighted. Re-export it, allow it in the QA re-export check, document it in the Discretization page and test it on an axisymmetric heat equation with P2 elements. 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.
ibp = Dict(eq => Weighted(r))is the integration-by-parts policy for axisymmetric problems in (r, z), but it neededusing PDEBase.StrongForm: Weighted. This re-exportsWeightedfrom FiniteElementMethod and documents it.src/FiniteElementMethod.jl:using PDEBase.StrongForm: Weightedandexport Weighted.Weightedis@publicin PDEBase.StrongForm and exists at the compat floor 0.1.40.test/qa/qa.jl::Weightedjoinsreexports_allownext to the other PDEBase names (MeshDomain,Region,boundarypiece). Without it, the "No unapproved public reexports" check fails.docs/src/discretization.md: new section "Weighted and axisymmetric problems". It explains whatWeighted(w)does (the equation is tested withw vbefore integration by parts;w = rturns(1/r) ∂ᵣ(r ∂ᵣu)into the divergence∇⋅(r ∇u)with a symmetric stiffness and no product-rule correction; the axis term vanishes so the axis piece goes innatural;Weighted(r^2)for the spherical Laplacian; the continuity equation of axisymmetric flow is weighted byrthe same way) and gives a complete axisymmetric heat-equation example with a manufactured solution. PDEBase's docstring is not pulled intoapi.md, because its@reflinks toIBPPolicycannot resolve in these docs and would fail the build.test/shared/frontend_tests/weighted.jl(run by the Frontend group): checks the export, then solves u_t = (1/r)(r u_r)_r + u_zz + f in (r, z) with P2 on triangles at n = 4, 8 and 16, with the manufactured solution exp(-t - r² - z²) andibp = Dict(eq => Weighted(r)), using only the exported name. Relative max nodal errors 4.64e-3, 6.68e-4 and 8.64e-5, rates 2.80 and 2.95 (asserted above 2.7).Verified (Julia 1.12): docs build exits 0 with no missing docs, Runic 1.13 clean, Core, QA and Frontend pass; the new test also passes on Julia 1.10.12 with PDEBase pinned to 0.1.40 (
Weighted === PDEBase.StrongForm.Weighted, 8 of 8, same errors and rates; only PDEBase was pinned to its floor, not every dependency). Codex found nothing. CI is the verification for the full downgrade.Risks: the continuity-equation sentence in the docs is not covered by a test here (it restates the pattern of the draft axisymmetric docs example, which this page does not link to); the doc example uses
FiniteElementMethod.rectangle_grid, which is not exported, matching the style of the page. The draft docs example #63 importsWeightedfromPDEBase.StrongForm; that import becomes redundant but harmless once this merges.🤖 Posted by an AI agent · harness: Claude Code 2.1.318 · model: claude-sonnet-5-5
Review: unreviewed
Session: 43e03fde-3384-4386-bae9-03e81f19ba7c