-
Notifications
You must be signed in to change notification settings - Fork 8
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
Scalar constants defined in model should be used in Julia service #284
Comments
Actually, the situation seems to be more complicated. An item Instead, there is code here pertaining to scalars but I don't understand the comment or the logic. There is no reliable connection between scalar multiplication operations and anonymous objects; scalar operations can be applied to named or anonymous objects. The scalar multiplication morphisms are the ones with this morphism type. So I think something needs to be fixed here. |
The comment indeed is incorrect and should be removed. I think it comes from a brief interval in time when scalar multiplication and anonymous functions were more tightly linked. The reason for the It seems like this code is working accidentally. We don't distinguish by "morType" in the theory-building, we just check that there is a morphism which is linked to a corresponding id in the Is the correct implementation to have the |
Yes, that sounds like a good approach to me. Right now, there will be two cases to handle in the dispatch, corresponding to the two morphism types in the double theory bound in |
This feature was completed in this commit. A @match statement was added to the morphism method for I move to close this issue. |
Thanks Matt! |
Currently a single constant,
diffusivity
, is hard-coded in the AlgJulia service.Follow up issue to #283.
The text was updated successfully, but these errors were encountered: