Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont materialize bc expr with uninitialized data #2253

Merged
merged 1 commit into from
Mar 25, 2025
Merged

Conversation

charleskawczynski
Copy link
Member

@charleskawczynski charleskawczynski commented Mar 22, 2025

When using the DebugOnly module to find NaNs, I'm finding that we're executing Broadcast expressions in ImplicitEquationJacobian due to preconditioner_cache. Per its doc string, it's role is not to initialize data, but only to allocate data, so I think using similar here is more appropriate, as the broadcast expression may contain uninitialized data. To do this, I've added similar support on Broadcasted objects with field and stencil styles.

I think it's pretty clear that we either need to fix the doc string, or fix the code, because they are inconsistent.

@charleskawczynski charleskawczynski merged commit 6fd8eed into main Mar 25, 2025
35 checks passed
@charleskawczynski charleskawczynski deleted the ck/similar branch March 25, 2025 21:04
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