-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having to send a time into the function for constraints is a design failure. #207
Comments
So |
No, t can be a local variable and you send in the closure |
But we give the function only once, when creating the condition. |
Yeah but you can change |
TIL |
Another proposal: Let user define |
Maybe a |
Maybe, but I wonder if not just propagating |
This allows functions for Dirichlet boundary conditions to accept a third argument with parameters that are not available when defining the constraint (e.g. data that are computed/updated/changed during the simulation). `update!` can now be called with a third argument which is passed along to the constraint function `f`, for example `update!(ch, t, p)` will call `f(x, t, p)`. Fixes #207, closes #213.
This should just be handled by sending in a closure
f(x) = f(x, t, ...)
.The text was updated successfully, but these errors were encountered: