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.


Thank you in advance,
M. Hartig

Attachment: sifemc.c
Description: Binary data

Attachment: testmesh_2D_box_quad.msh
Description: Binary data

Reply via email to