Skip to content

Conversation

@romerojosh
Copy link
Collaborator

A user reported an issue with the Fortran poisson example where results were erroneous for large grid dimensions (e.g. 1536^3). This was due to a normalization by the total grid size that can overflow if the grid is large enough. This PR fixes this issue by using 64-bit integers for the normalization factor computation.

@romerojosh romerojosh merged commit 4232f68 into main Feb 20, 2025
@romerojosh romerojosh deleted the fix_poisson_overflow branch February 21, 2025 18: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.

2 participants