Invalid definition of physical groups for the repeated geometry entities
I use Gmsh to generate meshes using OpenCASCADE models, after I upgraded to Gmsh latest version 4.11.1 I found the regressive behavior in creation of physical groups which are defined for the same geometry entities.
I prepared the simple script to demonstrate the problem:
SetFactory("OpenCASCADE");
//+
Box(1) = {0, 0, 0, 100, 100, 100};
//+
Physical Surface("a_1", 1) = {2};
//+
Physical Surface("a_2", 2) = {2};
//+
Physical Surface("a_3", 3) = {2};
//+
Physical Surface("a_4", 4) = {2};
//+
Physical Surface("g_1", 5) = {1, 3};
//+
Physical Surface("g_2", 6) = {3};
//+
Physical Surface("g_3", 7) = {1};
//+
Physical Surface("g_4", 8) = {1, 3};
I use "med" format to store mesh model, so i launch this script as: ./gmsh -3 "box.geo" -format med -save_all -o "box.med"
And for the given script the physical groups will be created like this:
Such case works well with Gmsh 4.10.5 version and each physical group is created as expected. I didn't find any user option which can somehow help me to avoid such groups definition.
Could you please help me to understand if it is new planned behavior of Gmsh (so physical groups should not repeat geometry entities) or just a regression?