Repository navigation
mesh contour test: the macOS field as its own case, portable draws, a wider loopy sweep - #891
Merged
Merged
Conversation
… wider loopy sweep Follow-up to #886, which fixed the merge for a forced leaf that tops its split tree. The tests now hold that case on every platform, whatever the sweep draws: - AForcedLeafThatTopsItsSplitTreeStillGivesATree: the 9x7 annulus field that broke the merge on macOS (seed 21 of the sweep, as libc++ draws it), written out. - draw(): #886's by-hand libc++ mapping as one helper. The grid comparison's plateau fields use it too; they still drew with std::uniform_int_distribution, so each standard library tested other grids there. - The loopy sweep adds a 12x4 torus and annulus and runs 200 seeds. With the case unhandled, about 1 field in 10 broke the 12x4 annulus and 1 in 300 the 9x7 one, so 40 seeds of 9x7 caught it on one platform by luck.
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.
Follow-up to #886, which fixed
MeshContourTree.RandomFieldsOnLoopyDomainsStillGiveTreeson macOS. Test-only.The bug #886 fixed
The case is "annulus seed 21" on #881's
package-macos / libcvc-release-grpc(job 123810230951):compute_contour_tree (mesh): internal error: a leaf with no split neighbour.std::uniform_int_distribution, whose mapping each standard library picks for itself. libc++ (macOS) takes the lowwbits of eachmt19937draw and redraws while the value is out of range. libstdc++ and MSVC map differently, so they drew other fields.This PR
AForcedLeafThatTopsItsSplitTreeStillGivesATree: that field, all 63 values, written out. It stays tested whatever the sweep draws.draw(): mesh contour tree: a forced leaf that tops its split tree keeps one split tree #886's by-hand libc++ mapping as one helper. The grid comparison's plateau fields (check_against_grid, levels 3 and 4) still usedstd::uniform_int_distribution, so each platform compared different grids. They usedraw()now too.Testing (Windows, MSVC 19.44 Release with asserts on, cvcpkg deps)
mesh_contour_test14/14.git clang-format --diff origin/master(18.1.8): no changes.