Remove duplicate getEntityNDIndex definition and fix entity indexing bugs#4
Draft
Copilot wants to merge 5 commits intoFEMContainerfrom
Draft
Remove duplicate getEntityNDIndex definition and fix entity indexing bugs#4Copilot wants to merge 5 commits intoFEMContainerfrom
Copilot wants to merge 5 commits intoFEMContainerfrom
Conversation
- Removed duplicate out-of-line definition of getEntityNDIndex from DOFHandler.hpp (the function is already correctly implemented inline in DOFHandler.h) - Completed getFaceNDIndex implementation by adding FaceXZ and FaceYZ cases - Fixed spelling inconsistency: Hexahedron -> Hexaedron to match Entity.h definition Co-authored-by: anekslen <91374074+anekslen@users.noreply.github.com>
- Fixed getVertexNDIndex to use explicit offset arrays matching fillLagrangeDOFMappingTable - Fixed getEdgeNDIndex for all edge types to use counter-clockwise ordering - Previous bit-operation implementations produced incorrect orderings Co-authored-by: anekslen <91374074+anekslen@users.noreply.github.com>
Co-authored-by: anekslen <91374074+anekslen@users.noreply.github.com>
Co-authored-by: anekslen <91374074+anekslen@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement mapping to get entity NDIndex
Remove duplicate getEntityNDIndex definition and fix entity indexing bugs
Nov 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The TODO in
DOFHandler.hppwas misleading—getEntityNDIndexwas already implemented inline inDOFHandler.h. However, inspection revealed critical bugs in the helper functions it dispatches to.Changes
Removed duplicate definition: Eliminated out-of-line declaration with TODO in
DOFHandler.hpp(lines 296-300)Fixed vertex/edge indexing: Replaced incorrect bit operations with explicit offset arrays matching counter-clockwise ordering from
fillLagrangeDOFMappingTablegetVertexNDIndex: 2D vertex 2 was computing[0,1]instead of[1,1]getEdgeNDIndex: All 3D edge types (EdgeX, EdgeY, EdgeZ) produced wrong orderingsCompleted
getFaceNDIndex: Added missing FaceXZ and FaceYZ implementations for 3DFixed spelling:
Hexahedron→Hexaedronto matchEntity.hdefinitionThe indexing bugs would have caused incorrect DOF mappings throughout FEM assembly operations.
Original prompt
Created from VS Code via the GitHub Pull Request extension.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.