[petsc-users] Could use DMDA create dm write to gmsh format file?
Matthew Knepley
knepley at gmail.com
Tue Apr 20 14:37:04 CDT 2021
On Tue, Apr 20, 2021 at 3:32 PM hu abel <hu.ds.abel at outlook.com> wrote:
> ./ex1 -dm_view ascii:ex1.vtu
>
./ex1 -dm_view vtk:ex1.vtu
Thanks,
Matt
> 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> 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/>
>
>
>
--
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/60e5dc1d/attachment.html>
More information about the petsc-users
mailing list