Thanks for the help Miklos.
I am not sure if I understand this completely but I have done a couple of things. One problem was that I had the first and last point as the same but I have since removed the last point.
1) For the case of line this seemed to do the trick and I can now import this into firedrake, which I am happy about.
2) For splines, I have also removed the point (updated code below) and when I look at it using gmsh I see that some points aren't actually on the boundary. This does seem odd but I am not sure how to fix it. Should I use a different kind of spline?
Sorry for not better understanding gmsh.
So it looks like some of the points -- e.g., Point 4, 5, and 6 -- are only used as support points to the spline, they don't belong to any cell, yet they are generated into the mesh.
Thank you.
This is the .geo file that I am using is copied below. First I tried splines and that seemed to have a line that goes outside of the domain whereas I have now switched to lines. It's a very, very simple set of coastlines but if this works I can do more complicated coastlines.
Unfortunately, when I try to compile it I do get a warning about orienting normals. The .msh file looks okay but clearly there is something not quite right. But it still does not important in firedrake though.
It says that your generated mesh has some vertices, edges, or else that does not belong to any cell. I suggest you have a look at the generated mesh to see if you can spot such an artifact, and then figure out how to drive gmsh to not have such a thing.
Hello,
I have created a mesh of an oceanic basin that I have triangulated with gmsh. Finally! I am very excited to solve for the wind-driven gyre solutions with this new mesh (as I discussed back in March at the workshop), unfortunately, when I try to import the mesh I get the following:
mesh = Mesh("test3.msh")
ValueError: Provided mesh has some entities not reachable by traversing cells (maybe rogue vertices?)
Any ideas as to what I might have done wrong and how I can fix this?
Cheers, Francis