[petsc-users] createASCII cleans up the content of a gmsh file.
Matthew Knepley
knepley at gmail.com
Fri Jun 21 08:28:13 CDT 2019
On Fri, Jun 21, 2019 at 4:56 AM Dongyu Liu - CITG via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Hi,
>
> we are using the Viewer class in pets4py to read a gmsh file, but after we
> use the function createASCII with the mode "READ", the gmsh file is
> emptied. Do you have any clue why this happens.
>
You need to set the mode to FILE_MODE_READ before opening the file.
Thanks,
Matt
> Best,
>
> Dongyu
>
--
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/20190621/74213ddf/attachment-0001.html>
More information about the petsc-users
mailing list