I am running basilisk code on supercomputer. Now I would like to output pics using view.h, but it does not work properly on my side.
For example, i use the following script to output pics of vof
event pics ( i += 10)
{
char name[80];
view (camera = "front", width = 1024, height = 1024);
clear();
draw_vof("f");
sprintf (name, "vof-%05g.png", t);
save (name);
}
It works fine at first, but after serveral timesteps, the job is killed and i received the errors that says can not read the image. The same error happens when i output pics of cells() on supercomputer. The full error message as following:
convert: unable to read image data `-' @ error/pnm.c/ReadPNMImage/899.
convert: no images defined `vof-0.0776514.png' @ error/convert.c/ConvertImageCommand/3046.
convert: unable to read image data `-' @ error/pnm.c/ReadPNMImage/899.
convert: no images defined `vof-0.10196.png' @ error/convert.c/ConvertImageCommand/3046.
srun: error: ca027: task 0: Broken pipe
srun: Terminating job step 441571.0
slurmstepd: error: *** STEP 441571.0 ON ca027 CANCELLED AT 2020-09-17T08:55:40 ***
srun: error: ca027: task 15: Terminated
srun: error: ca068: tasks 77,86,92: Terminated
srun: error: ca027: tasks 9-10: Terminated
srun: error: ca064: tasks 39,46: Terminated
srun: error: ca195: tasks 96-127: Terminated
srun: error: ca196: tasks 128-159: Terminated
srun: error: ca027: tasks 1-8,11-14,16-31: Terminated
srun: error: ca064: tasks 32-38,40-45,47-63: Terminated
srun: error: ca068: tasks 64-76,78-85,87-91,93-95: Terminated
srun: Force Terminated job step 441571.0
On the other hand, the movies could always be outputted properly with view.h using for example:
event movies (i++)
{
view (camera = "front", width = 1024, height = 1024, fov = 20);
clear();
draw_vof("f");
save ("front.mp4");
}
Did Anyone encounter this problem? That would be great if anyone could give me a possible solution about this.
Thanks a lot
Hui