Skip to content

feat: add default component for time_grid() with MultipleTimeGridModel#292

Merged
ocots merged 2 commits intomainfrom
grids
Apr 3, 2026
Merged

feat: add default component for time_grid() with MultipleTimeGridModel#292
ocots merged 2 commits intomainfrom
grids

Conversation

@ocots
Copy link
Copy Markdown
Member

@ocots ocots commented Apr 3, 2026

  • Add __time_grid_default_component() function returning :state
  • Update time_grid method signature for MultipleTimeGridModel with default parameter
  • Remove exception method that required explicit component specification
  • Update tests to verify new default behavior
  • Add test for new default function in test_defaults.jl
  • Update CHANGELOG.md and BREAKING.md for v0.9.12-beta
  • Maintain full backward compatibility with explicit component syntax

time_grid(sol) now works consistently for both UnifiedTimeGridModel and MultipleTimeGridModel, defaulting to state grid for multi-grid solutions.

- Add __time_grid_default_component() function returning :state
- Update time_grid method signature for MultipleTimeGridModel with default parameter
- Remove exception method that required explicit component specification
- Update tests to verify new default behavior
- Add test for new default function in test_defaults.jl
- Update CHANGELOG.md and BREAKING.md for v0.9.12-beta
- Maintain full backward compatibility with explicit component syntax

time_grid(sol) now works consistently for both UnifiedTimeGridModel and
MultipleTimeGridModel, defaulting to state grid for multi-grid solutions.
- Fix test_multi_grids.jl to expect T_state instead of exception
- Update test to verify time_grid(sol) returns state grid by default
- Ensure consistency with new MultipleTimeGridModel default behavior
@ocots
Copy link
Copy Markdown
Member Author

ocots commented Apr 3, 2026

Make then a new stable release when merged.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

Breakage test results
Date: 2026-04-03 10:55:16

Name Latest Stable
CTDirect compat: v0.9.12-beta compat: v0.9.12-beta
CTFlows compat: v0.9.12-beta compat: v0.9.12-beta
OptimalControl compat: v0.9.12-beta compat: v0.9.12-beta

@ocots ocots merged commit 195bceb into main Apr 3, 2026
18 checks passed
@ocots ocots deleted the grids branch April 3, 2026 11:11
@ocots ocots mentioned this pull request Apr 3, 2026
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.

1 participant