Passing arguments to low level operator #655
-
Hello, first and foremost I wanted to thank all the maintainers for the time an effort that is going into curating this package. Working with it so far is something I have really enjoyed. I wanted to open an issue to ask about operators (e.g., gradient, laplace...). I know it is possible to pass the time as argument, when passing an expression as the boundary condition. For example here I am passing the time t:
However, I could not find a way of passing time as an argument to the low level operators.
Could someone confirm if this can be achieved and perhaps provide a short working example? Many thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Thank you for using the package! I don't really understand what you're trying to achieve. The Laplace operator does not depend on time, so passing time doesn't make much sense. I suppose you're trying to achieve something else, so could you please describe what you are trying to do and what outcome you expect? |
Beta Was this translation helpful? Give feedback.
This can be done by supplying a numba dictionary when calling the operator:
I'll look into whether we could call
numba_dict
automatically in future versions of the package, so one could simply provide a python dictionary instead.