-
Notifications
You must be signed in to change notification settings - Fork 62
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
Segmentation fault when assembling linear form with MatrixVectorProductCoefficient #88
Comments
@benzwick Thank you for reporting this. Looking into this, it seems this odd error comes from mfem itself, not wrapper. The error is happening specifically this line, https://github.com/mfem/mfem/blob/master/fem/coefficient.cpp#L628 In mfem4.2, which PyMFEM is built with, this SetSize does not exist and the vector size remains zero. If you are building mfem using setup.py, you can add SetSize to mfem and build it. To do this, please go to PyMFEM/external/mfem. This is a folder mfem is downloaded. You can edit it and in the PyMFEM base directory, run this command.
Probably, this was a bug fixed between mfem-4.2 and 4.3. Therefore another option is to use mfem-4.3-dev of PyMFEM.
You can find more discussion about this branch in #87 |
I installed the mfem-4.3-dev branch but now I get the following error when creating the
A similar error occurs if I try to create a vector:
|
It appears that the bug in Do you know if there are any plans to release MFEM 4.2.1 etc. with fixes for bugs like this? |
MFEM 4.3 seems coming soon. We should better just fix the issue you mentioned above. Let me look into it. |
OK, |
The issue in mfem-4.3 is due to the recent change of mfem header, where _data (and any other variable starting |
Closing this for now. |
I am trying to use
MatrixVectorProductCoefficient
in aDomainLFGradIntegrator
as follows but I get a segmentation fault:With Numba:
Without Numba:
Does anyone know what is going wrong here?
EDIT: simplified the example and added non-Numba version.
The text was updated successfully, but these errors were encountered: