Skip to content

Use cached data for n_subdomains()#4417

Open
roystgnr wants to merge 2 commits intolibMesh:develfrom
roystgnr:cache_n_subdomains
Open

Use cached data for n_subdomains()#4417
roystgnr wants to merge 2 commits intolibMesh:develfrom
roystgnr:cache_n_subdomains

Conversation

@roystgnr
Copy link
Member

@roystgnr roystgnr commented Mar 6, 2026

Thanks and apologies to @NamjaeChoi for pointing out that this was O(N) when he was expecting O(1).

@NamjaeChoi
Copy link
Contributor

Thank you for the fix!

Especially n_subdomains() should be an O(1) call, not O(N).
@roystgnr roystgnr force-pushed the cache_n_subdomains branch from 434c10b to 996ad3b Compare March 7, 2026 01:18
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.

2 participants