[petsc-users] DMPlex: vtk/vtu support for labels

Jed Brown jed at jedbrown.org
Fri Mar 26 10:42:51 CDT 2021


Cameron Smith <smithc11 at rpi.edu> writes:

> Hello,
>
> I'm debugging our use of DMLabel to mark the mesh vertices in a 2d 
> triangular mesh on the geometric model boundary.
>
>  From what I understand, the latex/tikz and glvis viewers support 
> rendering user labels via the following options:
>
> tikz:
> -dm_view :mesh.tex:ascii_latex
> -dm_plex_view_scale 8.0  #not related to label, better formatting
> -dm_plex_view_labels <userDMLabelStrings>
>
> glvis (I have not tried this yet):
> -viewer_glvis_dm_plex_bmarker <userDMLabelStrings>
>
> Are there any other graphical viewers that support rendering the 
> existence and/or value of DMLabel?  I'm most familiar with paraview but 
> didn't see vtu/vtk support in dm/impls/plex/plex[vtu].c .

I think it would be good to include labels. Is there a more efficient way to do it than to lower labels to an integer-valued field over the entire mesh with some default value inserted for unlabeled points?


More information about the petsc-users mailing list