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

hu abel hu.ds.abel at outlook.com
Tue Apr 20 14:32:01 CDT 2021


 ./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 at gmail.com> wrote:
> 
> On Tue, Apr 20, 2021 at 3:25 PM hu abel <hu.ds.abel at outlook.com <mailto: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/20210421/0b5a9b0b/attachment.html>


More information about the petsc-users mailing list