Skip to content

cache_elem_data() if needed in surface remesher - #33346

Merged
GiudGiud merged 1 commit into
idaholab:nextfrom
roystgnr:rebuild_cache
Jul 16, 2026
Merged

cache_elem_data() if needed in surface remesher#33346
GiudGiud merged 1 commit into
idaholab:nextfrom
roystgnr:rebuild_cache

Conversation

@roystgnr

Copy link
Copy Markdown
Contributor

The existing code here isn't actually going to output wrong results (those Modification calls are invalidating cached spatial dimension but only querying cached subdomains), but it's interfering with my attempts to fix a couple libMesh preparation bugs in
libMesh/libmesh#4435

Refs #32398

Reason

We're keeping track of "cached element data" preparation in one bool, for forwards compatibility and to keep the updates inside a single element loop, but that means we can't go perfectly fine-grained with preparation aspects, so for safety we have to rebuild all element data caches whenever one of them gets invalidated. I'm trying to make sure MeshTools::Modification marks caches invalid whenever they might be, and to assert that we only query caches if they're marked valid, but the extra safety requires an extra rebuild here.

Design

Rebuild cached data (including subdomain sets) if needed.

Impact

No API changes.

No effect at all before libMesh/libmesh#4435 gets merged. After that merge there'll be a tiny slowdown, one extra element loop in this mesh generator.

The existing code here isn't actually going to output wrong results
(those Modification calls are invalidating cached spatial dimension but
only querying cached subdomains), but it's interfering with my attempts
to fix a couple libMesh preparation bugs in
libMesh/libmesh#4435

Refs idaholab#32398
@moosebuild

Copy link
Copy Markdown
Contributor

Job Test, step Results summary on e52ae48 wanted to post the following:

Framework test summary

Compared against 39a256e in job civet.inl.gov/job/3974625.

No change

Modules test summary

Compared against 39a256e in job civet.inl.gov/job/3974625.

No change

@moosebuild

Copy link
Copy Markdown
Contributor

Job Documentation, step Docs: sync website on e52ae48 wanted to post the following:

View the site here

This comment will be updated on new commits.

@GiudGiud

Copy link
Copy Markdown
Contributor

test failures unrelated

@GiudGiud GiudGiud self-assigned this Jul 16, 2026
@GiudGiud
GiudGiud merged commit 4fcf7b8 into idaholab:next Jul 16, 2026
53 of 57 checks passed
@roystgnr
roystgnr deleted the rebuild_cache branch July 16, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants