nemocrys / pyelmer

A python interface to Elmer.
GNU General Public License v3.0
53 stars 15 forks source link

Allow duplicate Materials, Solvers, etc. to be added #31

Closed db434 closed 1 year ago

db434 commented 1 year ago

The current behaviour if the user tries to add two components with the same name is that the first one is silently lost, and any references to it in the SIF end up containing IDs of 0, which Elmer isn't very happy with.

This pull request:

I was running into this issue with Materials, but I added the check to all components.