payu-org / payu

A workflow management tool for numerical models on the NCI computing systems
Apache License 2.0
18 stars 25 forks source link

Save experiment outputs + counters as environment variables #445

Closed jo-basevi closed 2 weeks ago

jo-basevi commented 2 weeks ago

Add environment variables of experiment output paths, and run counters so they can be easily accessed via user-scripts.

Currently have added PAYU_CURRENT_RUN, PAYU_ARCHIVE_DIR, PAYU_CURRENT_OUTPUT_DIR and PAYU_CURRENT_RESTART_DIR.

Closes #443

jo-basevi commented 2 weeks ago

Thanks for the review @blimlim! I've added in the code suggestions, so it's good for another review