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
Refinement appears to be working for simulations without faults. However, the residual is wrong for refinement in simulations with a fault. The PyLith Jacobian looks correct but the finite-difference Jacobian does not; this is consistent with the residual being wrong. I don't see anything wrong in the topology or the labels. My wild guess is that we are taking the wrong path in the code when assembling the residual for a hybrid cell for the Lagrange multiplier field.
Update: Originally I thought the bug was only associated with meshes from Gmsh, but this does not appear to be the case as the same ASCII mesh also generates the error.
baagaard-usgs
changed the title
Residual for refined mesh from Gmsh is assembled incorrectly
Residual for refined mesh is assembled incorrectly
Jan 31, 2024
Describe the bug
Refinement appears to be working for simulations without faults. However, the residual is wrong for refinement in simulations with a fault. The PyLith Jacobian looks correct but the finite-difference Jacobian does not; this is consistent with the residual being wrong. I don't see anything wrong in the topology or the labels. My wild guess is that we are taking the wrong path in the code when assembling the residual for a hybrid cell for the Lagrange multiplier field.
Update: Originally I thought the bug was only associated with meshes from Gmsh, but this does not appear to be the case as the same ASCII mesh also generates the error.
To Reproduce
PETSc branch:
knepley/pylith-4.0
PyLith fork:
https://github.com/baagaard-usgs/pylith.git
PyLith branch:
add-refine-tests
Diagram of mesh
refinedmesh.pdf
PyLith Jacobian
Finite-difference Jacobian
The text was updated successfully, but these errors were encountered: