[petsc-users] Could use DMDA create dm write to gmsh format file?

Matthew Knepley knepley at gmail.com
Tue Apr 20 14:28:14 CDT 2021


On Tue, Apr 20, 2021 at 3:25 PM hu abel <hu.ds.abel at 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

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210420/ba71cac1/attachment.html>


More information about the petsc-users mailing list