Skip to content

Fix solution indexing with extra arguments and colon evaluation - #707

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:solution-indexing-fixes
Oct 13, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:solution-indexing-fixes

Conversation

@utkuyilmaz1903

Copy link
Copy Markdown
Member

Split out of #698, no AD in here.

  • sol[u(t, x), inds...] hit a wrong field name (ivdomains) and dropped its result, so it never worked
  • a Colon in sol(args...; dv) took the grid of the wrong variable when the arguments of dv don't follow sol.ivs, e.g. u(x, t); u(t, x)[i] now resolves its arguments too
  • sol[u(t, x), end, :] asked the solution for the field's axes; now a clear error pointing to sol[u(t, x)][end, :]

Tests in Sol_Interface, Stationary and MOL_Interface2.

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