Skip to content

feat: Apply stdArray to the rest of the code#3881

Open
arng40 wants to merge 136 commits intodevelopfrom
feat/dudes/apply-array-bounds-checking
Open

feat: Apply stdArray to the rest of the code#3881
arng40 wants to merge 136 commits intodevelopfrom
feat/dudes/apply-array-bounds-checking

Conversation

@arng40
Copy link
Copy Markdown
Contributor

@arng40 arng40 commented Oct 24, 2025

This PR introduces wrappers for array-type containers, replacing the use of std::array to the geos repo . stdArray is introduced, which offer bounds checking via a modified operator [] .

@arng40 arng40 self-assigned this Oct 24, 2025
@arng40 arng40 added type: feature New feature or request flag: no rebaseline Does not require rebaseline ci: run CUDA builds Allows to triggers (costly) CUDA jobs labels Oct 24, 2025
@arng40 arng40 changed the title Apply stdArray to the rest of the code feat: Apply stdArray to the rest of the code Oct 27, 2025
Comment on lines +4 to +5
#include <array>
#include <cstddef>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
#include <array>
#include <cstddef>

numInternalNodesPerEdge, numNodesPerEdge, globalNodeOffset, glCoords, localNodeOffset, order]( localIndex const iter_edge )
{
std::unordered_map< std::array< localIndex, 6 >, localIndex, NodeKeyHasher< localIndex > > nodeIDs;
std::unordered_map< stdArray< localIndex, 6 >, localIndex, NodeKeyHasher< localIndex > > nodeIDs;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Don't we have a wrapper form std::unordered_map?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

@arng40 arng40 requested a review from tjb-ltk as a code owner March 31, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: run CUDA builds Allows to triggers (costly) CUDA jobs flag: no rebaseline Does not require rebaseline type: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants