Skip to content

test(gmsh): measure the FEM reproducibility behind the transposition identity - #68

Merged
amaurigmartins merged 2 commits into
mainfrom
fix/fem-reproducibility
Nov 2, 2026
Merged

amaurigmartins merged 2 commits into
mainfrom
fix/fem-reproducibility

Conversation

@amaurigmartins

Copy link
Copy Markdown
Member

The FEM transposition test compared two computations of one problem at 1e-14 and reported only false on macOS and Windows. This computes the untransposed problem twice, compares the mesh files byte for byte and asserts the reproducibility of the solve and the transposition identity with their ratios visible. Measurement step; the fix of the test follows on this branch once the four FEM jobs report.

…identity

The transposition test compared two computations of one problem at 1e-14 of the norm and reported only false on macOS and Windows. It now computes the untransposed problem twice, compares the two mesh files byte for byte and asserts the reproducibility of the solve and the transposition identity with their ratios visible, so that a platform difference reports its size and its origin.
The identity compares two computations of one problem. On macOS and Windows Gmsh numbers the nodes of the same mesh differently from run to run, which changes the elimination order of the solve and its round-off; pull request 68 measured differences up to 1.1e-13 of the norm and none on Linux. The bound is 1e-12, ten times above the worst measurement, and a wrong transposition would miss it by orders of magnitude. The measurement scaffolding of the previous commit goes.
@amaurigmartins
amaurigmartins merged commit 7949f6c into main Nov 2, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from TODO to Done in LineCableModels.jl Nov 2, 2026
@amaurigmartins
amaurigmartins deleted the fix/fem-reproducibility branch November 2, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant