-
Notifications
You must be signed in to change notification settings - Fork 187
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
@pydef not overloading method correctly #470
Comments
To add, the following Python code works perfectly fine.
|
Is this because the function name cc @cstjean |
I don't think so. The following fails too. @pydef type SDTExpression <: fenics.Expression
eval_cell(self, value, x,y) = begin
value[1] = 1.0
return
end
end Python version works fine. |
I don't have time to look into this in detail, but googling the error, it seems to come from a project called DOLFIN?
It looks like it's trying to JIT compile the function... |
DOLFIN is a submodule of a differential equation solver called FEniCS. It will attempt to JIT compile most code that it uses, but provides a Python interface for user-defined functions that to my understanding aren't JIT compiled and can thus callback into Python - the whole reason for using it. I'm using the FEniCS Julia interface, using which I encountered the above. For my own use case, I've now worked around the issue, but there may still be an issue somewhere in the code. |
Hmmm, it looks like the The problem is most likely that we initially create the That said, I believe that you will then hit #268 on this line. That's harder to fix. |
You can try the latest |
The following code does not work.
The error it gives is as follows.
This makes no sense because I've defined one.
The text was updated successfully, but these errors were encountered: