Closed hersle closed 2 weeks ago
The error happens because tearing_reassemble()
is called with the initialization system, which is a NonlinearSystem
without an associated independent variable, so the differential operator is set to D = nothing
. I'm not sure if this is what is causing the bug itself, though.
This should be handled by the dummy derivative substitutions here:
I can play with this and see what's going on.
Got it
Nice, thanks!
This should work:
It fails with
A workaround is to define an intermediate observed variable for
D(x)
:But this should not be necessary. It also works with if
x
andD(x)
are provided throughdefaults
inODESystem
oru0
inODEProblem
.