Closed bueler closed 4 years ago
Workaround for chapter 10 gmsh, until msh2petsc.py
is improved:
-format msh22
whenever running gmsh.This is substantially done. (See branch update-to-gmsh41.) But there is an unwarranted line format assumption revealed by the koch/ example. So TODO: fix msh2petsc.py to remove unwarranted, and build regression to check.
The koch example now works. As far as I can tell msh2petsc.py is correct. But there is a mysterious hang, at least on galago, for koch5 and higher.
The mysterious hang is not present on thelio with latest petsc.
This issue is fixed in master.
The "mysterious hang" on galago was fixed by upgrading the ubuntu 20.04 version of openblas. See https://github.com/xianyi/OpenBLAS/issues/2642
It needs to work with different gmsh formats. Currently it expects format version 2.2, but that is at least at 4.1 now.
The script already reads a section at a time. Note that from the Gmsh format spec we have
But in Chapter 10 we also need $PhysicalNames. All other sections (e.g. $Entities) are already ignored by the design of
msh2petsc.py
.The Gmsh doc site has a page for the legacy format which seems to be 2.2.
Plans:
check_mesh_format()
toget_mesh_format()
which also gets the version number. (Major,Minor? Or alegacy
flag?)