-
Notifications
You must be signed in to change notification settings - Fork 52
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
Visualization of 2D grid functions with 3 vector dimensions #327
base: master
Are you sure you want to change the base?
Conversation
@helloworld922 , can you test this? It worked for me with the reproducer 😉 . |
It doesn't crash now, but now it doesn't update the vector data on subsequent plots for time series data. Here's an updated reproducer:
|
Ok, it should work now 👍 I moved things around a bit. |
It looks like it works for L2 spaces now. Thanks! |
The "updated reproducer" causes GLVis to crash on my Mac. I'm not sure what I might be doing differently from you two. |
@mlstowell , any error message? Maybe try it with MFEM checked out at mfem/mfem#4731 . It is required for that RT/ND_R1/2D elements and should not be necessary without them, but still better to try 😉 . |
Nothing useful. The reproducer shows
GLVis shows:
|
Oops, I see the problem... |
It's working for me now. I'll run some more testing after lunch but I do like this approach. Thanks @najlkin! |
So have you tracked that down? The thing is GLVis cannot require the latest MFEM. It is ok for new features like that RT/ND_R1/2D elements, but not the core things 🤔 . |
Another issue I'm seeing is that sometimes the GLVis window is empty. I believe this sometimes happens when the z-coordinates are uninitialized and the scaling of the image is not computed correctly. I was looking at setting the z-coordinate in |
I have not seen it, but then it is a bug of |
Hmm, |
Yes, exactly. I was debating where it should be fixed. I think you're correct. If |
We may include it to mfem/mfem#4731 , but I do not know where it is coming from. Maybe something relies on the vertices, which are still 2D, while |
Yeah, it seems that |
Ok, I added such fix to mfem/mfem#4731 , because many methods in GLVis rely on vertices instead of nodes and there is no way to know what dimension they have after the change as the higher ones are simply uninitialized 💣 . |
This addresses the issue of elements with vdim=3 in 2D (or 1D) from #326 and vector elements RT/ND_R2D spaces from #291 .
◀️ dependency: RT/ND_R2D support requires GLVis compiled with mfem/mfem#4731 .
