Blank gif file from Savage Hutter Avalanche of grains 2D example

125 views
Skip to first unread message

Cheng Qiao

unread,
Oct 20, 2015, 3:55:03 AM10/20/15
to basilisk-fr
Hi all,
    I can run the example of Savage Hutter Avalanche of grains 2D now, thanks the help of Pierre-Yves Lagrée. I compiled the bosse_aval_gray.c file successfully.

    I want output the gif file following the commands, when I run the command:
    
gifsicle --colors 256 --optimize --delay 1   --loopcount=0 bosse.gif > bosse_aval_gray.gif

    The bash prompt that:   gifsicle: warning: trivial adaptive palette (only 1 colors in source)

    I have run all the commands one by one, i.e.
 ./bosse_aval_gray > v.out
echo
"set term gif animate; set output 'bosse.gif'" > dmp
cat v
.out >> dmp
mv dmp v
.out
cat v
.out | gnuplot
gifsicle
--colors 256 --optimize --delay 1   --loopcount=0 bosse.gif > bosse_aval_gray.gif  
rm bosse
.gif
rm v
.out  

    But the outputted bosse_aval_gray.gif  file is blank when I double clicked it.
     What is wrong? I think it maybe the command which got warnning, i.e.
   

gifsicle --colors 256 --optimize --delay 1   --loopcount=0 bosse.gif > bosse_aval_gray.gif

     How to correct it? Any suggestion will be appreciated!



Best regards


Cheng

"Pierre-Yves Lagrée (PYL)"

unread,
Oct 20, 2015, 5:11:06 AM10/20/15
to Cheng Qiao, basilisk-fr
Dear Cheng
this is more a gif animated problem than a basilisk one.

I will check soon, if you have no news send me a mail

@++


--
You received this message because you are subscribed to the Google Groups "basilisk-fr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to basilisk-fr...@googlegroups.com.
To post to this group, send email to basil...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/basilisk-fr/9260bdff-b9e4-4ad5-baff-001bd9eb766f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

----> ----> ----> ----> ---->  
---> Pierre-Yves Lagrée (PYL)
_____________________________
///////////////////////////// 

Cheng Qiao

unread,
Oct 21, 2015, 2:55:23 AM10/21/15
to basilisk-fr, qiaoc...@gmail.com, pierre-yv...@upmc.fr
Dear Lagrée,
    I have a amazing discovery. I recompiled the code after modified the code slightly.
    Change the original:
    printf("set hidden3d; unset border; unset ytics; unset xtics; unset ztics;\n");
    to:
    printf("set hidden3d. unset border; unset ytics; unset xtics; unset ztics;\n");
    Then recompiled and run the code by:
    qcc -fopenmp  -g -O2 -DTRASH=1 -Wall  bosse_aval_gray.c -lm -o bosse_aval_gray
    ./bosse_aval_gray | gnuplot

    This time, I saw the animated draw from Gnuplot, although I got a warnning from the bash:
    gnuplot> set hidden3d. unset border; unset ytics; unset xtics; unset ztics;
                     ^
         line 665920: No such option to hidden3d (or wrong order)

    After I run the command:
    cat v.out | gnuplot
    following the order in the C raw file. A gif file named 'bosse.gif' was created. This is what I waitted!
    I am not familiar with Gnuplot, so I don't know exactly the reason why the change from semicolon to
period can make the output work.
    Wish the advice from you.

Best regards

Cheng

Cheng Qiao

unread,
Dec 15, 2015, 2:47:40 AM12/15/15
to basilisk-fr, qiaoc...@gmail.com, pierre-yv...@upmc.fr
Dear Lagrée,
     I found that the reason for incorrect display of gif may lie in the verson of Gnuplot. After update to Ubuntu 15.04 and new install of Basilisk
and Gnuplot, I run the bosse_aval_gray.c following the commands in source file, and I got a correct displayed gif file. The commands are same
as before, but this time it works well.
    Sorry for bothering you, thanks for the example from you.

Regards


Cheng


在 2015年10月20日星期二 UTC+8下午5:11:06,"Pierre-Yves Lagrée (PYL)"写道:
Reply all
Reply to author
Forward
0 new messages