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

rickcha at googlemail.com rickcha at googlemail.com
Tue May 24 04:32:21 CDT 2016


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 <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.


Thank you in advance,
M. Hartig

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160524/55c151e0/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sifemc.c
Type: application/octet-stream
Size: 726 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160524/55c151e0/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160524/55c151e0/attachment-0004.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testmesh_2D_box_quad.msh
Type: application/octet-stream
Size: 16699 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160524/55c151e0/attachment-0003.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160524/55c151e0/attachment-0005.html>


More information about the petsc-users mailing list