When loading options from a .opt file, fails to load physical groups from .msh file.
Case 1:
Generated a .msh using the gmsh API, assigning physical groups as well as writing a .opt file. Loading the .msh file results in no physical groups being loaded from the .msh file. Exiting gmsh, deleting the .opt file, and re-opening the .msh results in physical groups being properly loaded into gmsh, but obviously the options are not loaded.
Case 2:
Generated a .msh using the gmsh API, assigning physical groups, not writing any .opt file. Opening the .msh file in gmsh results in physical groups being loaded correctly. Opened the options menu and set all options to their desired value, and then saved those options to a .opt file from the gmsh GUI. Closing gmsh re-opening the .msh file results in all the options being loaded, but no physical groups are loaded from the .msh file. Exiting gmsh, deleting the .opt file, and re-opening the .msh results in physical groups being properly loaded into gmsh, but obviously the options are not loaded.
Case 3: Generated a .msh using the gmsh API, assigning physical groups, not writing any .opt file. Setting options using the gmsh API, and then opening the gmsh GUI through an API call during the program. Both physical groups and options are correctly loaded, but because they are only set during runtime they do not persist beyond that run.
Here are some example files that show this behaviour:
Thank you!