Skip to content

Update use of flush statements in BLOM/iHAMOCC#716

Merged
TomasTorsvik merged 3 commits intoNorESMhub:masterfrom
TomasTorsvik:feature-flush_stdout
Mar 11, 2026
Merged

Update use of flush statements in BLOM/iHAMOCC#716
TomasTorsvik merged 3 commits intoNorESMhub:masterfrom
TomasTorsvik:feature-flush_stdout

Conversation

@TomasTorsvik
Copy link
Copy Markdown
Contributor

The use of flush statements in BLOM/iHAMOCC does not conform to the Fortran2003 standard.

  • Replace all call flush(<file_id>) statements with flush(<file_id>) statements.
  • Add a flush(io_stdo_bgc) statement at the start of the profile_gd subroutine to overcome runtime error when running in debug mode on Olivia.

This overcomes a problem encountered when running in debug mode on Olivia, where
IFLD index can be altered if this flush statement is not present.
@TomasTorsvik TomasTorsvik self-assigned this Mar 11, 2026
@TomasTorsvik TomasTorsvik added iHAMOCC Issue mainly concerns the iHAMOCC code base BLOM Issues mainly concerning the BLOM code base labels Mar 11, 2026
@TomasTorsvik TomasTorsvik linked an issue Mar 11, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@JorgSchwinger JorgSchwinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@github-project-automation github-project-automation bot moved this from Todo to In Progress in NorESM Development Mar 11, 2026
Copy link
Copy Markdown
Contributor

@matsbn matsbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for updating this!

@TomasTorsvik TomasTorsvik merged commit 1604ff4 into NorESMhub:master Mar 11, 2026
4 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in NorESM Development Mar 11, 2026
@TomasTorsvik TomasTorsvik deleted the feature-flush_stdout branch March 11, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BLOM Issues mainly concerning the BLOM code base iHAMOCC Issue mainly concerns the iHAMOCC code base

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Replace all call flush() statements with flush() statements

3 participants