./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 <[email protected]> wrote:
> 
> On Tue, Apr 20, 2021 at 3:25 PM hu abel <[email protected] 
> <mailto:[email protected]>> 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
> 
> https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>

Reply via email to