Skip to content

Default class Element attribute value #3687

Answered by mlstowell
dbgarlisch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @dbgarlisch,

The range of valid attribute IDs is from 1 to max(int). In theory your "magic" number should work fine. However...

It's not uncommon in MFEM to find what we call "marker arrays" which have a length equal to the maximum attribute number. I'm sure you see the potential for problems. It might be wise for MFEM to scan the attribute numbers and look for potential problems of this sort and at least issue a warning. Perhaps in the longer term we might even want to move away from using these marker arrays. In the near term I'm afraid you'll need to find another solution.

MFEM doesn't have the concept of an "unspecified boundary ID". In such cases we simply don't include these bou…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dbgarlisch
Comment options

dbgarlisch May 24, 2023
Collaborator Author

@mlstowell
Comment options

@dbgarlisch
Comment options

dbgarlisch May 24, 2023
Collaborator Author

Answer selected by dbgarlisch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants