Repository navigation
Assert the smaller PSOR error at an accuracy tolerance of 1e-3 in the coupled assembly test - #863
Merged
rserban merged 1 commit intoOct 29, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Following up on #856. At the default tolerance (
1e-2), the coupled test checks that the accuracy flag catches the five large PSOR errors (3.2–16.2 m/s²). A sixth, the slider-crank withl/r = 3and a slider 100 times the crank’s mass atth = 0.3(ill-conditioned by the mass ratio, not the geometry), leaves a PSOR error of8.6e-3m/s², below the default tolerance.This PR:
slider_crank_lower_tolerance, a separate test that runs that case atSetAssemblyAccelerationTolerance(1e-3)and expects PSOR to reportACCELERATION_INACCURATEandSPARSE_QRand Barzilai-Borwein to stay accurate and unflagged;1e-2unchanged;1e-6s, as computed inDoAssembly) for every run, so the margins show up in CI logs on every platform.Margins (Linux, GCC 13.3, Release,
mainatda80252; 123 runs, with the flag raised exactly when the printed estimate exceeds the tolerance):2.98e-3(actual error8.57e-3), flagged at1e-3, about 3× above the threshold;3.17e-5for default PSOR (slider-crankl/r = 1.5, mass ratio 100,th = 0.3),9.1e-8for Barzilai-Borwein,4.0e-9forSPARSE_QR, about 30× below the threshold.The upper margin is the narrower one. I have only run this on Linux, so the CI logs on Windows and macOS will show whether PSOR’s last iterate moves the sixth case’s estimate toward
1e-3.