KristofferC / Phon

Insert cohesive elements between grains in microstructures
MIT License
29 stars 19 forks source link

create_cohesive_elements(mesh, 3) #25

Open mumayy opened 2 years ago

mumayy commented 2 years ago

create_cohesive_elements(mesh, 3) gives error. Traceback (most recent call last): File "", line 1, in File "C:\Users.....\Phon-master\phon\mesh_tools\create_cohesive_elements.py", line 62, in create_cohesive_elements for element_set_name in mesh.element_sets.keys(): RuntimeError: OrderedDict mutated during iteration

shuaizhou001 commented 2 years ago

It is your Python version problem. You should change some lines of the codes.

mumayy commented 2 years ago

Thank you for your answer, but which parts should I change?