segmentation fault after erasing some particles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Fix Released
|
Undecided
|
Jérôme Duriez |
Bug Description
Dear all,
I built a simple script according to script-session1.py (B.Chareyre). I tried to erase some particles, it was done without any problem. but after finishing the simulation, as soon as I tried to run more iterations, it showed segmentation fault and quit yade.
The length of O.bodies is similar to The one before erasing.(Does not change after erasing)
you can see my question in:
https:/
I'm using Ubuntu 14.04 LTS and yadedaily version: 2018.02b-
And here is my script:
# -*- coding: utf-8 -*-
from yade import pack, plot
young=1e8
compFricDegree = 5
finalFricDegree = 35
mn,mx=Vector3(
O.materials.
O.materials.
walls=aabbWalls
wallIds=
psdSizes=
psdCumm=
sp=pack.
sp.makeCloud(
sp.toSimulation
triax=TriaxialS
maxMultiplier=
finalMaxMultip
thickness = 0,
stressMask = 7,
internalCompac
)
newton=
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
triax,
newton,
]
O.dt=PWaveTimeS
triax.goal1=
while 1:
O.run(1000,True)
unb=unbalance
print 'porosity', triax.porosity
if unb<0.01 and abs(-10000-
break
bodiesToBeDelet
for b in O.bodies:
if b.id in range(6):
continue
else:
if b.state.
bodiesToBeDe
for b in bodiesToBeDeleted:
O.bodies.
Changed in yade: | |
assignee: | nobody → Jérôme Duriez (jduriez) |
Changed in yade: | |
status: | Fix Released → New |
status: | New → Fix Released |
Hi,
I launched this script with Yade 2018-04- 19.git- 79b2edb.
I got the repeated output of "porosity X" with the porosity X-value soon getting negativ, and then decreasing againt until ~ -1e100, then I stopped manually the simulation.
I did not get any segmentation fault. Could you clarify the situation, please ?