Repository navigation
Deprecate DAEProblem(pdesys, disc) in favour of discretize - #90
Merged
Merged
Conversation
discretize is the documented entry point; the DAEProblem method now warns and returns the same problem. Tests use discretize, with one test for the deprecation and the steady-system rejection. Agent-Harness: Claude Code 2.1.319 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>
Switches the Navier-Stokes and swirl examples, README and docs to discretize(pdesys, disc). The README Navier-Stokes block changed, so its recorded hash is updated; the problem and the showcase images are unchanged. Agent-Harness: Claude Code 2.1.319 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.319 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>
examples/axisym_swirl/axisym_swirl.jl now calls discretize, which changes the recorded source hashes of the figures and the animation. The problem is identical, so the images are not regenerated. Agent-Harness: Claude Code 2.1.319 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>
Same treatment as DAEProblem: the method warns and forwards to a private helper with the old body. Tests use discretize, with one test for the deprecation and the transient-system rejection. Agent-Harness: Claude Code 2.1.321 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.
Problem. The Navier-Stokes example, its docs page and the README built their problem with
DAEProblem(dfg, disc), althoughdiscretize(pdesys, disc)is the documented entry point. TheDAEProblemmethod was a thin forwarding alias, andNonlinearProblem(pdesys, disc)for steady systems is the same pattern.Fix.
SciMLBase.DAEProblem(pdesys::PDESystem, disc::FEMDiscretization; kwargs...)now emits a deprecation warning pointing atdiscretizeand returns the same problem as before. The steady-systemArgumentErroris unchanged.SciMLBase.NonlinearProblem(pdesys::PDESystem, disc::FEMDiscretization; kwargs...)is deprecated the same way, with a private_nonlinearproblemholding the old body (including its transient-systemArgumentError).discretize(pdesys, disc).docs/src/extension_contract.mdand theabstoldocstring no longer presentDAEProblem(pdesys, disc)orNonlinearProblem(pdesys, disc)as an equivalent entry point.NonlinearProblemchange touches no hashed source):ns_showcase.fnv1a(README block),axisym_swirl.fnv1aandaxisym_swirl_animation.fnv1a(axisym_swirl.jl). The problems are identical, so the images are not regenerated.Tests.
test/shared/frontend_tests/end_to_end.jlasserts the deprecation warning, that the problem matchesdiscretize's result, and that the old rejection (steadydiscforDAEProblem, time-dependentdiscforNonlinearProblem) still raises.discretize.--depwarn=yes.🤖 Posted by an AI agent · harness: Claude Code 2.1.321 · model: claude-sonnet-5-5
Review: unreviewed
Session: 43e03fde-3384-4386-bae9-03e81f19ba7c