-
Notifications
You must be signed in to change notification settings - Fork 159
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
Fix assembly of Real matrices #3846
Conversation
|
|
Test ideas:
|
I think the issue is less to do with the nonlinear solve and more that passing |
Why do you want to use the tensor argument? Why not just ask |
This is for repeated assembly so it's more efficient. |
I meant just for this test, but that makes sense. |
Yes you can always pass |
That's a useful test, but how come you also removed the original MFE? Are we guaranteed that if the new test passes, then that MFE will pass? I'm not convinced that it is guaranteed, because the new test doesn't explicitly specify |
I don't really know. In general I want to avoid the proliferation of "big" tests that slow the test suite down. Also we implicitly specify |
Why do you think it's big? Unless I'm reading the logs correctly it passed in about 2 seconds.
The original bug was for |
Maybe not "big" but "non-specific"? I don't necessarily think it's reasonable for a package to fill its test suite with snippets of user code when I can add a unit test that directly validates the change that I made. I'd be happy to discuss this in person at some point maybe.
Sure. I will make the test more explicit. |
Ok this makes more sense (although I would word it: "that directly validates that the bug is fixed", but we can be pedantic about it some other time). This is why I was asking if the original MFE would definitely pass if the new test passed. If you're happy that that is the case now
Sure, happy to chat when we're both in the office. |
f3f1e58
to
88456fd
Compare
@ksagiyam can you take another look? |
* Fix assembly of Real matrices
Description
Fixes #3837 and (I claim) tidies up the logic in
assemble.py
slightly.The core of the issue was that we were not unpacking the
Dat
orGlobal
from theMATPYTHON
matrices that we use for the Real space.I need some help coming up with a good test for it.