Saving, loading cylinders
Hi
I've got a problem while saving/loading simulations with chainedCylinders.
This appends only when :
- I run a simulation with more than one chainedCylinder.
- I have some interactions between some spheres and the cylinders
- I save/load the simulation (I succeed to load the simulation)
Then if I try to perform one more step of DEM, I get a segmentation fault.
The debug mode displays this error :
in Ig2_Sphere_
and at line 56 of my Cylinder.cpp :
54 shared_ptr<const ChainedState> statePrev;
55 if (cylinderSt-
56 statePrev = YADE_PTR_CAST<const ChainedState> (Body::
I think that when saving/loading the simulation YADE creates the chainedCylinders, but the information about which cylinder belongs to which chainedCylinder is not totally created. Maybe the chains array is not completed ?
I noticed that in the Python console the chainNumber argument of the cylinder's state is preserved through the saving/loading operation. The currentChain attribute of each cylinder is lost and set to 0 when I load a simulation.
Do you think there is a way to bypass the problem ?
Thanks
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 Kneib François for more information if necessary.