O.save() / O.load() problem
Dear all,
in my simulations I use clumps of spheres and write restart files regularly (using O.save()). When I reload these files, I get an error:
python: /home/bettinasu
aborted (core dumped)
I use yade-1.20.0, compiled, without modifications and Cundall-Strack contact law.
Below, a minimal working example is given, which writes some restart files. The error does not occur if spheres instead of clumps are used. The problem seems to be related to clumps.
utils.readParam
from yade.params.table import *
from yade import pack
#define material for all bodies:
id_Mat=
#define engines:
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
]
#create a box:
O.bodies.
#add particles eiter spheres or clumps
if partType=
sp=pack.
sp.makeCloud( (-0.125,-0.125,0), ( 0.125,0.125,0.5), rMean=37.
sp.toSimulation()
O.bodies.
elif partType=='clumps':
sp=pack.
c1=pack.
sp.makeClumpC
sp.toSimulation()
O.bodies.
else:
print "ERROR! choose either spheres or clumps for partType!"
O.dt=1e-6
#write some restart files
O.save(
O.run(100000,True)
O.save(
O.run(300000,True)
O.save(
The error occurs when:
O.load(
O.run(1000, True)
Is called.
Can somebody please help me? I don’t understand what causes the error. Before, I was using restart files in the same way and never had any of these problems.
Thanks in advance,
Bettina
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Bettina Suhr for more information if necessary.