-
-
Notifications
You must be signed in to change notification settings - Fork 74
allow multiple depvars in MOLFiniteDifference #377
allow multiple depvars in MOLFiniteDifference #377
Conversation
What's the philosophy on adding more tests vs editing the existing ones to capture the more complicated case (2 variables instead of 1)? |
Very dependent on the use case. It's good to have some tests that catch a bunch, but also having some nice small tests that are good to copy-paste and play with is also good. |
…ue-374-multiple-depvars
@@ -31,7 +33,7 @@ function SciMLBase.symbolic_discretize(pdesys::ModelingToolkit.PDESystem,discret | |||
|
|||
# Build symbolic variables | |||
indices = CartesianIndices(((axes(s)[1] for s in space)...,)) | |||
depvars = map(pdesys.depvars) do u | |||
depvarsdisc = map(depvars) do u |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does the name mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discretized - I found it confusing that depvars != pdesys.depvars
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, yes it was a consequence of writing too fast. Thanks for correcting it.
Fixes #374