Finish 2 pass candidate search #1778
Open
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.
Summary
computeClipVolumes3Dmethods to call the workhorsecomputeClipVolumes3DTet, which implements the two-pass candidate search (see PR Use 2-pass candidate search for mesh clipping #1756). This is facilitated by two temporary index lists thatcomputeClipVolumes3DTetrequire.This PR, along with #1756, resolves issue #1704.
Performance data
Test problem
I collected clipping times using a 100^3 cubic computational mesh. Each test geometry takes between 6.1% and 9.7% of the domain. I added a "cupmesh", which is a tetrahedral mesh representation of a cup, from the
data/quest/cup.proefile. This image is for illustration only. The actual shapes are bigger and centered on the mesh.Timers
The benchmarks were run on 1 rank, using OpenMP on rzwhippet and HIP on rzadams. Here are the times spent clipping each geometry, the median of 5 repetitions. The "sl" column headings below indicate the level of screening used to avoid unneeded call to the clipping function.
On rzwhippet:
On rzadams:
Remarks about the performance times
IntersectionShaperused single-pass and was significantly slower.