Skip to content
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

Error after PyMFEM install #178

Open
436ahsan opened this issue May 31, 2023 · 1 comment
Open

Error after PyMFEM install #178

436ahsan opened this issue May 31, 2023 · 1 comment

Comments

@436ahsan
Copy link

I recently installed PyMFEM in my M1 mac and after installation, when I tried running the example to solve div(alpha grad(u)) = f in a square and to plot the result with matplotlib (modified from ex1.cpp) I am getting the following error:

Screenshot 2023-05-31 at 2 52 28 PM

That means mfem is running but not properly I think. Any ideas what could be the reason?

@mshaocong
Copy link

I met the same problem. The output of mesh.GetVertexArray() is a tuple not an array. Adding verts=np.vstack(verts) will fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants