You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps applying unique! to the coordinate lists is the best move, though this may require a little bit of type logic since x1c and x2c can be things like ranges. @sriharshakandala
The text was updated successfully, but these errors were encountered:
@jb-mackay : Currently, the Mesh2D constructor for rectangular domains is invoked through equispaced_rectangular_mesh function.
Similarly, we can have another function that constructs the mesh using user specified x1 and x2 coordinates. Within this function, we can add checks that ensure that x1c and x2c are unique and in ascending order. We can also check to ensure the extremes of x1c and x2c are in compliance with the domain extremes.
Thanks, @sriharshakandala, makes sense. I'm building 2D meshes with x1c and x2c to generate an overlap mesh which is not regularly spaced. The above issue is actually not a problem since I'm using a union in the constructor. I guess we can hold off on building the function you discuss until we have a use case.
Duplicate values in coordinate lists are not accounted for in
Mesh2D
, leading to extra copies of elements.Minimal working example:
Perhaps applying
unique!
to the coordinate lists is the best move, though this may require a little bit of type logic sincex1c
andx2c
can be things like ranges. @sriharshakandalaThe text was updated successfully, but these errors were encountered: