Skip to content

Add sanity check for number of primitives#176

Open
susilehtola wants to merge 3 commits intowavefunction91:masterfrom
susilehtola:shell_size_max
Open

Add sanity check for number of primitives#176
susilehtola wants to merge 3 commits intowavefunction91:masterfrom
susilehtola:shell_size_max

Conversation

@susilehtola
Copy link
Copy Markdown
Contributor

There's no check in GauXC on the maximum allowed number of primitives. I think any faulty code might error out even earlier due to overflows in the passed-in arrays, but this check will at least crash the code after the memory violation has occurred instead of producing faulty results.

Copy link
Copy Markdown
Owner

@wavefunction91 wavefunction91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Minor comment

Comment thread include/gauxc/shell.hpp Outdated
@awvwgk awvwgk requested a review from wavefunction91 April 27, 2026 07:00
Copy link
Copy Markdown
Collaborator

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

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.

3 participants