Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve HAFS scripts to redirect stdout and stderr to files for executables #242

Open
BinLiu-NOAA opened this issue Nov 30, 2023 · 1 comment
Assignees
Labels
Bugzilla Operational HAFS bugzilla items enhancement New feature or request

Comments

@BinLiu-NOAA
Copy link
Collaborator

Description

Provide a clear and concise description of the requested feature/capability.
From NCO SPA: Please look into to improve HAFS scripts to redirect stdout and stderr to files (pgmout and errfile, for example) for executables, except executables with minimum amount of output (100 lines or so) at next upgrade.

Per the WCOSS implementation standards, page 16 -
6. Any executions that print verbose output (more than 100 lines or so per execution) must redirect standard output and standard error to a file under $DATA, for example:
$EXECmodel/$pgm >> $pgmout 2> errfile

For example -
scripts/exhafs_atm_ic.sh
scripts/exhafs_atm_lbc.sh
scripts/exhafs_atm_prep.sh
scripts/exhafs_atm_vi.sh
ush/hafs_filter_topo.sh
ush/hafs_make_grid.sh
ush/hafs_make_orog.sh

Proposed solution

How should the new feature/capability be added? If you have thoughts on the implementation strategy, please share them here.

Status (optional)

Do you (or a colleague) plan to work on adding this feature?

Related to (optional)

Directly reference any related issues or PRs in this or other repositories, and describe how they are related. Examples:

  • fixed by hafs-community/hafs/pull/<pr_number>
@BinLiu-NOAA BinLiu-NOAA added enhancement New feature or request Bugzilla Operational HAFS bugzilla items labels Nov 30, 2023
@BinLiu-NOAA BinLiu-NOAA self-assigned this Jan 11, 2024
@BinLiu-NOAA
Copy link
Collaborator Author

According to NCO SPA's suggestion, the stdout and stderr redirection (together with error handling) in HAFS application workflow scripts has been substantially improved in the latest production/hafs.v2 branch. For executables outputting large amount log information and print outs, the stdout and stderr will be redirected into a log file, meanwhile showing up in the job log file. Please see example commit 9118c62. Also for more details from the latest production/hafs.v2 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugzilla Operational HAFS bugzilla items enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant