[Developers] flush-ing stdout in cctk_vinfo

Bela Szilagyi szilagyi at aei.mpg.de
Wed Jan 31 11:56:37 CST 2007


I am using the 

-bno -reo 

options but these do not work.  I.e., in spite of my command line

cactus_harm -reo -bno myparfile.par >& mylogfile.out

I am loosing output lines in various CCTK_Proc[...].out files.


 fflush(stdout) ;

into my own code, after CCTK_VInfo(...), has solved the problem.

So my suggestion is to add the fflush() into CCTK_VInfo(...), perhaps 
conditional to an extra parameter. 

On Wednesday 31 January 2007 18:41, Erik Schnetter wrote:
> We discussed this, and we decided that this would be too expensive in  
> general.  Instead we added a command line option "-b" which lets you  
> specify whether to flush never, after every line, or after every  
> print statement.  This is for all output, not just for CCTK_INFO.  
> The default setting is chosen by the operating system, probably  
> depending on whether the output goes to a terminal or into a file.

Bela Szilagyi
Max-Planck-Institut für Gravitationsphysik
Tel: +49 331 567 7632
Fax: +49 331 567 7649

More information about the Developers mailing list