<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">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. </div><div class="">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. </div><div class="">From the following conversation : <a href="http://lists.mcs.anl.gov/pipermail/petsc-users/2015-January/024101.html" class="">http://lists.mcs.anl.gov/pipermail/petsc-users/2015-January/024101.html</a> I deduct that it should be possible to import the Phsical Names or tags. However I get the following error message:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: 'Andale Mono'; color: rgb(195, 55, 32); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</span></div><div style="margin: 0px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[0]PETSC ERROR: Invalid argument</span></div><div style="margin: 0px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[0]PETSC ERROR: File is not a valid Gmsh file</span></div><div style="margin: 0px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" class="">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.</span></div><div style="margin: 0px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[0]PETSC ERROR: Petsc Release Version 3.7.1, unknown </span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">I am not sure whether it is incorrect use of the routines from my side or a bug in Petsc.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">I attached below the code and my .msh file.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Thank you in advance,</span></div><div class="">M. Hartig</div><div class=""><br class=""></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span></div></body></html>