-
Notifications
You must be signed in to change notification settings - Fork 56
DOFs numberings displays #339
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
base: master
Are you sure you want to change the base?
Conversation
|
To clarify: "DOF" here means the numbering of the Mesh nodes (as a high-order grid function), right? |
|
Js seems to be working: https://github.com/GLVis/glvis-js/actions/runs/15313952476 😉 Thanks for the cleanup 👍 I need to take a deeper look... |
|
I tested that and it works nicely with 2D scalars on conforming meshes, but a few things to do:
|
|
@tzanio , it shows DOFs (in the sense of finite element nodes) for the visualized grid function. In the case of mesh visualization, the nodes of the coloring grid function. |
- Avoid using mfem:: in header files
Fix Numbering with parallel attributes
|
Thanks for doing this @camierjs, testing this on some scalar data as part of #350 On a 2D mesh with scalar data made from a submesh, I would guess that the distinction between a 2D mesh vs a submesh of a 3D mesh is probably the root of the difference. |
|
Thanks for testing this out, @hughcars —you're right: for now, only 2D meshes with scalar data are supported for the DOF numbering display. The 'n' key cycles through the display modes only in this mode. To handle vector mode, would adding a key to cycle through the 'index' of the visualized component be a good solution? (It wouldn't solve the clash with the 'n' key in that mode, though—we'd still need to find another one.) The handling of 2D meshes created as submeshes could definitely be improved—perhaps in a follow-up PR? |
This PR adds DOFs numbering.
The
nkey now cycles in 2D:NONE→ELEMENTS→EDGES→VERTICES→DOFS.Should solve #106
Parallel numbering is now by default 'local' to each rank and can be toggle back to 'global' with

Alt-n:(
mpirun -n 3 ./ex6p -m ../data/star-mixed.mesh -o 2 -md 200)