Problems with manipulation force container after erasing some bodies
Hi,
I encountered a problem with manipulation of force container after I erase some bodies from simulation. For example, command O.forces.reset() results in 'segmentation core fault'. I have found a 'dirty fix' to this (setting zero permF to any of the left bodies). However, I don't understand this behavior. How should it be properly handled?
# this code works
O.bodies.
O.forces.reset()
#
# this code fails
O.bodies.
O.bodies.erase(0)
O.forces.reset()
#
#but this works
O.bodies.
O.bodies.erase(0)
O.forces.
O.forces.reset()
#
I am using Ubuntu 20.04. I have tried this on different versions of Yadedaily (e.g 20210923-
Best wishes,
KB
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Karol Brzezinski
- Solved:
- Last query:
- Last reply: