I am creating a quadtree grid using the gridgen method. I have a problem with the level of refinement. The grid has 6 layers in which I select layer 1 only to be refined (See please line 95 of my attached code).
When I select the level of refinement = 3 or more, and although I select only layer 1 for the refinement, both layers 1 and 3 will be refined !!. I really have no idea why layer 3 is also refined!
However, if I select the level of refinement = 2 or less, The problem is solved and layer 1 will be only refined.
The refinement level I need at the end is 3. In line 117 of my code, I plot layer 2, so that you can see it.
Attached is my code and the required files to run the code
https://we.tl/t-CVCAOuE1xV
Thanks a lot in advance
I am creating a quadtree grid using the gridgen method. I have a problem with the level of refinement. The grid has 6 layers in which I select layer 1 only to be refined (See please line 95 of my attached code).
When I select the level of refinement = 3 or more, and although I select only layer 1 for the refinement, both layers 1 and 3 will be refined !!. I really have no idea why layer 3 is also refined!
However, if I select the level of refinement = 2 or less, The problem is solved and layer 1 will be only refined.
The refinement level I need at the end is 3. In line 117 of my code, I plot layer 2, so that you can see it.
Attached is my code and the required files to run the code
https://we.tl/t-CVCAOuE1xV
Thanks a lot in advance