So for certain features of the hydrodynamic solve, such as a Christensen Q, and ALE/SALE, we need some form of element-element connectivity array. Consider the following mesh fragment: The aim of the connectivity array is to link cell 13 to its four orthogonal neighbours, 8, 12, 14 and 18. Specifically, however, we want an array of size [4,ncells] where the first index corresponds to the directions down, right, up, left in that order. I.e: elelconn[1,13] = 12 elelconn[2,13] = 18 elelconn[3,13] = 14 elelconn[4,13] = 8 In order to calculate this array correctly, we first need to look at how GMSH generates the cell-node connectivity. Turns out we have control of this, via the Transfinite Surface input. We'll set up the input file so that it creates the following node ordering (in nodelist): Here the green numbers show how the nodes are ordered (i.e. indices of nodelist), whilst the red numbers show (again) how we want the edges to be numbered (i.e. indices of elelcon...