./ex1 -dm_view ascii:ex1.vtu
 cat ex1.vtu 
DM Object: 1 MPI processes
  type: da
Processor [0] M 10 N 8 m 1 n 1 w 2 s 1
X range of indices: 0 10, Y range of indices: 0 8

The output as about,
Is that need add some c code or use command option?

Thanks.



On Apr 21, 2021, at 3:28 AM, Matthew Knepley <knepley@gmail.com> wrote:

On Tue, Apr 20, 2021 at 3:25 PM hu abel <hu.ds.abel@outlook.com> wrote:
Hi everyone!

    Could use DMDA create dm write to gmsh format file? Or vtk?
I tried dm/tutorials/ex1.c 
 ./ex1 -dm_view ascii:ex1.msh
cat ex1.msh 
DM Object: 1 MPI processes
  type: da
Processor [0] M 10 N 8 m 1 n 1 w 2 s 1
X range of indices: 0 10, Y range of indices: 0 8

You can write to .vtu, which should be what you want.

  Thanks,

    Matt
 
Thanks
Abel


--
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener