CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   turing off the log file? (http://www.cfd-online.com/Forums/openfoam/75305-turing-off-log-file.html)

bunni April 21, 2010 13:56

turing off the log file?
 
Sorry if this is a silly question, but how do I turn off the log file? Is there a command line toggle for that? I'm doing very long runs, and the log file gets into the Gb range, which is a little much. Cheers.

AlanR April 21, 2010 15:56

Control-C will kill the log file if it's already started. You can run a solver without the log file if you don't need the log. Instead of <foamJob simpleFoam>, just enter <simpleFoam> on the command line (or <mpirun -np x simpleFoam -parallel> if you're using more than one processor. The residuals will be displayed in your terminal window. I hope this helps,

Alan

bunni April 21, 2010 17:01

thanks
 
Thanks, I was actually looking to toggle it off, as opposed to redirecting to stout. I didn't know about control-C, but I don't know if that will work on the job submission system. At the moment, I redirect to /dev/null. I also just used the <simpleFoam>, as you suggest.

CedricVH April 22, 2010 03:36

I think your system is the only correct one, running simpleFoam 2>&1 > /dev/null

benk April 22, 2010 09:16

Check out these threads:
http://www.cfd-online.com/Forums/ope...r-outputs.html
http://www.cfd-online.com/Forums/ope...thin-code.html
http://www.cfd-online.com/Forums/ope...ug-switch.html

bunni April 22, 2010 12:36

Thanks for your help!


All times are GMT -4. The time now is 02:44.