Skip to content

fix: write to standard io error unit#574

Merged
scrasmussen merged 1 commit intoNCAR:mainfrom
scrasmussen:bugfix/write-to-standard-io-units
May 8, 2025
Merged

fix: write to standard io error unit#574
scrasmussen merged 1 commit intoNCAR:mainfrom
scrasmussen:bugfix/write-to-standard-io-units

Conversation

@scrasmussen
Copy link
Copy Markdown
Member

SOURCE: Soren Rasmussen, NSF NCAR

DESCRIPTION OF CHANGES:

  • Using modern Fortran practices by using the iso_fortran_env error_unit when writing output that is a warning or error. The run_scm.py python script captures this as stderr output and in the future the script can better handle this information.

TESTS CONDUCTED: built with GNU modules on Derecho

NOTE: Do the changes to CCPP_typedefs.F90 need to be also PR'ed elsewhere?

@grantfirl
Copy link
Copy Markdown
Collaborator

@scrasmussen RE: CCPP_typedefs.F90, I'd rather not push those changes back to fv3atm because it probably opens up a can of worms in that repo.

@scrasmussen scrasmussen force-pushed the bugfix/write-to-standard-io-units branch 2 times, most recently from e84ed9f to 2cbe923 Compare April 7, 2025 18:20
@scrasmussen
Copy link
Copy Markdown
Member Author

@scrasmussen RE: CCPP_typedefs.F90, I'd rather not push those changes back to fv3atm because it probably opens up a can of worms in that repo.

This makes a lot of sense! Reverted the changes to CCPP_typedefs.F90

@scrasmussen scrasmussen force-pushed the bugfix/write-to-standard-io-units branch from 2cbe923 to 77b5b08 Compare April 22, 2025 16:05
@scrasmussen scrasmussen marked this pull request as draft April 22, 2025 20:45
@scrasmussen
Copy link
Copy Markdown
Member Author

Converted to draft, waiting for PR #570 to be merged and there will be a few lines that will need to be changed

@grantfirl
Copy link
Copy Markdown
Collaborator

@scrasmussen FYI, #570 was merged.

…t that is a warning or error. The python scripts capture this as stderr output
@scrasmussen scrasmussen force-pushed the bugfix/write-to-standard-io-units branch from 77b5b08 to 4db5bb4 Compare May 6, 2025 18:53
@scrasmussen scrasmussen marked this pull request as ready for review May 6, 2025 18:58
@scrasmussen scrasmussen merged commit 22d772c into NCAR:main May 8, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants