View Issue Details

IDProjectCategoryView StatusLast Update
0004227OpenFOAMBugpublic2025-03-26 08:31
Reporterarakevin_ Assigned Towill  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Summary0004227: FOAM Fatal IO Error,
DescriptionHi,
I am currently facing an issue of OpenFOAM7 with g++11 when I compile Allrun file for the below error:
Calculating field g.h
Reading field p_rgh
Courant Number mean: 0.00779814174 max: 0.00894743587

--> FOAM FATAL IO ERROR:
error in IOstream "OSHA1stream.sinkFile_" for operation Ostream& operator<<(Ostream&, const word&)

file: OSHA1stream.sinkFile_ at line 0.

    From function virtual bool Foam::IOstream::check(const char*) const
    in file db/IOstreams/IOstreams/IOstream.C at line 96.

I have tried the solution with changing the OSHA1stream.H file states in https://github.com/OpenFOAM/OpenFOAM-9/commit/b0c15bebd37142f3902901ed5e9a60e33ed456eb and recompile all the solver but it does not work, and I also change the -O3 parameter in OpenFOAM-dev/wmake/rules/linux64Gcc/ to -O0 based on the https://bugs.openfoam.org/view.php?id=3856 and recompile again, the bug cannot be solved as well. However, I need to stay at OpenFOAM7 to test the edited solver.
How could I solver this bug? Thanks
TagsNo tags attached.

Activities

will

2025-03-26 08:30

manager   ~0013550

It's not reasonable to expect us to back-port fixes to five versions ago.

> How could I solver this bug?

Either update your "edited solver" or find an out-of-date compiler to match your out-of-date version of OpenFOAM.

Issue History

Date Modified Username Field Change
2025-03-23 23:49 arakevin_ New Issue
2025-03-26 08:30 will Assigned To => will
2025-03-26 08:30 will Status new => closed
2025-03-26 08:30 will Resolution open => no change required
2025-03-26 08:30 will Note Added: 0013550
2025-03-26 08:31 will Resolution no change required => duplicate
2025-03-26 08:31 will Product Version dev =>