Segmentation fault (core dumped) after erase some bodies
Hi,
I'd like to delete particles which has connection to other particles, I read some answers and follows the suggestion in [1].
The outcome is unstable, when I use "example one" to generate particles, Segmentation fault (core dumped) occurs. While when I comment "example one" and use "example two" to generate particles, it works well. Here is the MWE:
from yade import pack, plot
########## example one which leads to Segmentation fault#####
for i in range(10):
O.bodies.
O.bodies.
######## example two which works well #####
# O.bodies.
# O.bodies.
# O.bodies.
# O.bodies.
# O.bodies.
# O.bodies.
O.engines=[
ForceResett
InsertionSo
Interaction
),
NewtonInteg
]
Ids=[]
for i in O.bodies:
Ids.
O.step()
BodiesToBeDel=[]
def findBodiesToBeD
for i in Ids:
for j in Ids:
if i>=j:
else:
if O.interactions.
findBodiesToBeDel()
def eraseOverlapBod
for i in BodiesToBeDel:
eraseOverlapBod
My yade version is 2018.02b on Ubuntu 18.04.
Do you know what is the problem?
many thanks
Leonard
[1]https:/
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: