iFEM is a MATLAB software package containing robust, efficient, and easy-following codes for the main building blocks of adaptive finite element methods on unstructured simplicial grids in both two and three dimensions.
In 842ba40a497cc7aeb2d3293f6dd54082818b5cb4 commit, the loop ordering of the cubemesh is changed such that the elem generated by it will have a nice ascending ordering in both rows and columns. For example
Problem
In 842ba40a497cc7aeb2d3293f6dd54082818b5cb4 commit, the loop ordering of the
cubemesh
is changed such that theelem
generated by it will have a nice ascending ordering in both rows and columns. For examplegives
Visualizing the elements by a six-element group we will have![mesh1](https://user-images.githubusercontent.com/4467042/137032210-bc18123c-6829-4296-95b5-02065a68fd8b.png)
However, if we do from
cubemesh
thenuniformrefine3
, the ascending ordering is gone.gives
and visualizing the refined elements by 6-element groups yields something like the following:![mesh2](https://user-images.githubusercontent.com/4467042/137032595-15ca6e25-835e-4bcf-a35d-2c9cc7822273.png)
Potential solution
uniformrefine3
, this is somewhat unwanted from a development pov.