[petsc-users] DMPlexCreateGmshFromFile seems to have problems with Physical names

Matthew Knepley knepley at gmail.com
Tue May 24 08:07:20 CDT 2016


On Tue, May 24, 2016 at 4:32 AM, <rickcha at googlemail.com> wrote:

> Hello,
>
> I am a new user of Petsc trying to make my rudimentary FEM code run on
> petsc for the purpose of testing coupling approaches of structural analysis
> with an existing multiphysics Fortran Code. For mesh generation I use Gmesh
> which has served me well in the past.
> Naturally I would like to import the mesh that I created in Gmsh as a
> DMPlex object but this only works when there are no Physical Names present
> in the .msh file.
> From the following conversation :
> http://lists.mcs.anl.gov/pipermail/petsc-users/2015-January/024101.html I
> deduct that it should be possible to import the Phsical Names or tags.
> However I get the following error message:
>
> [0]PETSC ERROR: --------------------- Error Message
> --------------------------------------------------------------
> [0]PETSC ERROR: Invalid argument
> [0]PETSC ERROR: File is not a valid Gmsh file
> [0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html
> for trouble shooting.
> [0]PETSC ERROR: Petsc Release Version 3.7.1, unknown
>
> I am not sure whether it is incorrect use of the routines from my side or
> a bug in Petsc.
> I attached below the code and my .msh file.
>

Its my fault. We do not read that section. I will write code to read it in.
However, I am not sure about
integrating that information. I do not have a place for a lookup table of
strings.

I will update the 'next' branch when the code is finished.

  Thanks,

     Matt


> Thank you in advance,
> M. Hartig
>
>
>
>
>


-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160524/7a160d38/attachment-0001.html>


More information about the petsc-users mailing list