Bug Description
FEProblemBase::computeJacobianTags() updates the displaced mesh without rebuilding displaced mortar segment meshes. Mortar segments can therefore retain old coordinates while quadrature points are mapped against updated parent faces.
When dynamic mortar regeneration was introduced in commit 8b1f83c7df, its source comment stated that mortar meshes would be rebuilt during “residual and Jacobian evaluation.” The implementation added the rebuild to residual evaluation, but not to the standalone Jacobian path.
Steps to Reproduce
Run a displaced 3D mortar problem using standalone Jacobian assembly, such as through automatic scaling. The stale mortar geometry can cause an error such as:
Unable to map 3D mortar quadrature point ... the analytical fallback did not find one unique in-domain QUAD4 inverse. Rebuilding displaced mortar immediately after updating the displaced mesh removes the failure.
Impact
Affected displaced-mortar simulations can fail or unnecessarily reduce the timestep. Residual and combined residual/Jacobian evaluation already perform the required update.
Bug Description
FEProblemBase::computeJacobianTags()updates the displaced mesh without rebuilding displaced mortar segment meshes. Mortar segments can therefore retain old coordinates while quadrature points are mapped against updated parent faces.When dynamic mortar regeneration was introduced in commit
8b1f83c7df, its source comment stated that mortar meshes would be rebuilt during “residual and Jacobian evaluation.” The implementation added the rebuild to residual evaluation, but not to the standalone Jacobian path.Steps to Reproduce
Run a displaced 3D mortar problem using standalone Jacobian assembly, such as through automatic scaling. The stale mortar geometry can cause an error such as:
Unable to map 3D mortar quadrature point ... the analytical fallback did not find one unique in-domain QUAD4 inverse. Rebuilding displaced mortar immediately after updating the displaced mesh removes the failure.Impact
Affected displaced-mortar simulations can fail or unnecessarily reduce the timestep. Residual and combined residual/Jacobian evaluation already perform the required update.