Skip to content

test(Rosenbrock): update resize_tests for new cache fields (k₁/k₂/k₃ → ks, f₁ → dense)#3313

Open
singhharsh1708 wants to merge 2 commits intoSciML:masterfrom
singhharsh1708:fix-rosenbrock-resize-tests
Open

test(Rosenbrock): update resize_tests for new cache fields (k₁/k₂/k₃ → ks, f₁ → dense)#3313
singhharsh1708 wants to merge 2 commits intoSciML:masterfrom
singhharsh1708:fix-rosenbrock-resize-tests

Conversation

@singhharsh1708
Copy link
Copy Markdown

@singhharsh1708 singhharsh1708 commented Apr 1, 2026

Summary

Updates resize_tests.jl to reflect the new RosenbrockCache structure introduced in the RodasTableau refactor.

The previous tests accessed fields specific to Rosenbrock23Cache / Rosenbrock32Cache:

  • k₁, k₂, k₃
  • f₁

These have been replaced in the unified RosenbrockCache with:

  • ks (vector of stage values)
  • dense (interpolation coefficients)

Changes

  • Replaced:

    • k₁, k₂, k₃ks
    • f₁dense
  • Updated assertions to validate vectorized structure:

    • all(length.(cache.ks) .== N)
    • all(length.(cache.dense) .== N)

Rationale

The cache structure was unified as part of the RodasTableau migration, so tests need to align with the new representation.

No changes to solver behavior — this only updates tests to match the new internal structure.
Test for #3273

Checklist

  • Appropriate tests were updated
  • No public API changes
  • Follows SciML style guidelines
  • Documentation unaffected (internal change)

@test length(i.cache.k₁) == 5
@test length(i.cache.k₂) == 5
@test length(i.cache.k₃) == 5
@test all(length.(i.cache.ks) .== 5)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also test that there is the right number of ks.

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