compas-dev / compas_fea

COMPAS interface to common Finite Element Analysis software.
https://compas.dev/compas_fea
MIT License
35 stars 16 forks source link

Check for duplicate keys when adding elements #85

Closed tmsmendez closed 5 years ago

tmsmendez commented 5 years ago

A check on duplicate node keys when adding elements should be implemented to avoid zero length linear elements, or zero area surface elements.

andrewliew commented 5 years ago

Solved easily with a check of duplicate nodes via sets in add_element(). None is returned if duplicate keys found and the element is not added.