Segmentation error

Submitted by SergeiD on Tue, 02/28/2012 - 10:29

I need to remove the one mesh/gran after finish particles pouring and to continue simulation. Also I need to compute wall/gran/local and do several simulations with different parameters. But I got the segmentation fault when jump to next case if I remove mesh/gran by unfix/fix procedure. I attach example script. Please, tell me how to fix my script?

AttachmentSize
Binary Data bug_test.tar_.gz3.64 KB
Philippe's picture

Philippe | Tue, 02/28/2012 - 10:47

Hello Sergei,

for some reason I can not check out your script, but one reason for a segfault can be the fix wall/gran. If you remove a mesh, you also need to unfix the wall/gran and create a new one with the remaining meshes.

greetz
Philippe

SergeiD | Tue, 02/28/2012 - 11:44

Hello, Philippe.

>> If you remove a mesh, you also need to unfix the wall/gran and create a new one with the remaining meshes.
Yes, I do it. The structure of the my script is next:

variable Parameter index 1 2 3
...
fix wall/gran mesh1 mesh2
...
compute wall/gran/local
run N
unfix wall/gran
fix wall/gran mesh1
run N
clear
next Parameter
jump in.case

ckloss's picture

ckloss | Tue, 02/28/2012 - 12:47

Sergei,

thanks for letting us know. That clearly looks like some bug. I will have a look and see if I can fix that in the next release.

Cheers, Christoph