Skip to content

Make calculate_residuals! consistently return nothing#3243

Merged
ChrisRackauckas merged 1 commit intoSciML:masterfrom
ChrisRackauckas-Claude:cr/diffeqbase-calculate-residuals-consistency
Mar 27, 2026
Merged

Make calculate_residuals! consistently return nothing#3243
ChrisRackauckas merged 1 commit intoSciML:masterfrom
ChrisRackauckas-Claude:cr/diffeqbase-calculate-residuals-consistency

Conversation

@ChrisRackauckas-Claude
Copy link
Copy Markdown
Contributor

Summary

  • Fix return value inconsistency in calculate_residuals! methods in DiffEqBase
  • Two methods returned nothing, one returned the broadcast result, and one returned out — now all consistently return nothing
  • Bump DiffEqBase version to 6.212.1

No callers capture the return value of calculate_residuals! anywhere in the monorepo, so this is a safe change.

Test plan

  • SublibraryCI passes for DiffEqBase and all downstream dependencies
  • CI passes for main test groups
  • Format check passes

🤖 Generated with Claude Code

All in-place calculate_residuals! methods now return nothing consistently.
Previously two methods returned nothing while others returned the output
array or the broadcast result, which was inconsistent with the in-place
mutation convention used throughout DiffEqBase.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit 2e44423 into SciML:master Mar 27, 2026
196 of 228 checks passed
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