CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Fatal IO Error about "Sout" (

sandy February 7, 2010 08:08

Fatal IO Error about "Sout"
Hi OpenFOAMers,

When I run my case, I got the error informations as follows:

error in IOstream "Sout" for operation Ostream& operator<<(Ostream&, const word&)

file: Sout at line 21747

From function IOstream::check(const char*) const
in file db/IOstreams/IOstreams/IOstream.C at line 94.

FOAM exiting

What's the matter with it? Please help me out. Thanks.


sandy February 7, 2010 20:27

I can not even recompile my solver in the "Debug" option too. Tears :(, what I can do for the code. Please help.

huxiaoxia October 28, 2011 09:12

I got the same problem. Does anyone know what 's problem?

Rebecca513 October 3, 2012 16:32

I got the same problem as well, any one has any suggestions?

I truly appreciate it.



aujamal20 February 1, 2013 05:27

--> FOAM FATAL IO ERROR: error in IOstream "Sout" for operation Ostream& operator<<(
Did any one of you get th solution for this problem as I am also facing the same issue.
I am using OF 1.7.1.
In the start simulation runs properly and then it stops giving the error.:confused:
Suggestions & Comments are wellcomed.


Fine February 7, 2014 03:51


i got the same issue. think it was due to me writing out far too much to the log file. Got the error when my log file was about 40GB in size :P Reduced the amount of data written to log file and re-ran run from latest time. works fine now.

Therefore i think it may be that you're simply running out of disk space.


WernerW November 20, 2015 14:28

How to reduce log.file size ?
Hi Josefine and All,

How do you reduce the amount of data written to the log.file ? Is there an option I could include as "> log.solver XX XX " to write several files at a given size of the current log.file ?

Thank you very much,

Fine November 21, 2015 15:12

write to multiple log files
1 Attachment(s)
Hi Werner

I remember finding a script some time ago on the forums which partially addressed this issue. I modified the perl script somewhat to write to multiple files.

Copy the attached text file "betaLogger" into your case folder (i.e. into the folder containing your 0,constant, and system folders)
Open terminal at that location and run chmod +x betaLogger (to make the file executable)
Whereas you used to run your case with solver > log you will now run your case with:
solver | ./betaLogger 1000 > log
where 1000 signifies the maximum number of lines you wish to allow per file.
For example:
myCompressibleTwoPhaseEulerFoam | ./betaLogger 1000 log

Let me know if this works
All the best

WernerW November 21, 2015 20:17

Thanks !
Hi Josefine !

thank you very much ! In the moment I don't need this because I restarted the simmulation with a new mesh and the problem didn't appear this time. But thank you anyway I'll keep the script for the time that I really need it ;)


All times are GMT -4. The time now is 17:20.