tensorProductCoordinates does not allow coords with different number of x and y coordinates
I tried to construct a grid with a different number of x and y coordinates using tensorProductCoordinates
from dune-grid/python/dune/grid/_grids.py. I received the following error message:
Traceback (most recent call last):
File "/home/streitfl/Schreibtisch/Dune/build/dune-hypercut/examples/anisotrop/simulations_advection.py", line 316, in <module>
advTestCase = AdvTestCase((50, 2), 0.4, boundaryValues)
File "/home/streitfl/Schreibtisch/Dune/build/dune-hypercut/examples/anisotrop/simulations_advection.py", line 98, in __init__
domain = domains.AnisotropInX(**cfg)
File "/home/streitfl/Schreibtisch/Dune/dune-hypercut/python/pyhypercut/domains.py", line 209, in __init__
BaseAnisotrop.__init__(self, cells, lowerLeft, upperRight, refinements, alpha, 0.)
File "/home/streitfl/Schreibtisch/Dune/dune-hypercut/python/pyhypercut/domains.py", line 138, in __init__
view = gridView(tensorProductCoordinates(coordinates, lowerLeft), dimgrid=2)
File "/home/streitfl/Schreibtisch/Dune/build/dune-grid/python/dune/grid/_grids.py", line 160, in tensorProductCoordinates
coords = np.array(coords, dtype=dtype)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
The variable coordinates in the above error message is a list containing two arrays of different sizes.