Skip to content

Verify the rectangleMesh function when working wigh SEGY files #322

Description

@rasjr1305

It seems the firedrake 2026 version is using a new function to create the rectangle mesh:

plex = PETSc.DMPlex().createBoxMesh(
(nx, ny),
lower=(originX, originY),
upper=(Lx, Ly),
simplex=False,
interpolate=True,
comm=comm
)

This is different from 2025 version:

return TensorRectangleMesh(
xcoords,
ycoords,
quadrilateral=quadrilateral,
reorder=reorder,
...
)

I believe this change is creating an interpolation in the vp grid, changing the segy velocity model. This subtle change is making Gmsh or even other meshers create 2 different meshes with different number of elements. This is another reason the test is failing.

A troubleshoot must be done to compare the final state of the velocity model when the segy is treated by the function rectangleMesh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions