Skip to content

Conversation

@TeaganKing
Copy link
Contributor

@TeaganKing TeaganKing commented Jan 30, 2025

This PR will provide updates to template.cupid in order to utilize additional xml variables which provide more flexibility for running CUPiD via the CESM workflow.

Copy link
Member

@billsacks billsacks left a comment

Choose a reason for hiding this comment

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

This looks really great, and is a nice step towards having CUPiD integrated more fully into the user workflow. As @TeaganKing requested, I did a bunch of testing of the bash logic, and this all seems like it's working! I have a few small suggestions, and am also pointing out variables that aren't yet used (but it's fine to keep these place-holders in for now).

@TeaganKing
Copy link
Contributor Author

TeaganKing commented Feb 7, 2025

Thanks for all your comments, @billsacks !

Summary of currently unused vars:

  • CUPID_EXAMPLE
  • CUPID_BASELINE_CASE
  • CUPID_BASELINE_ROOT
  • CUPID_BASE_START_YEAR
  • CUPID_BASE_END_YEAR
  • CUPID_START_YEAR
  • CUPID_END_YEAR

TeaganKing and others added 6 commits February 7, 2025 14:28
Teagan and I added a bunch of xml variables to env_postprocessing.xml (in a
CUPiD PR), so template.cupid now uses those variables to modify the CUPiD
config. Also, we moved case.cupid into the default workflow (but
RUN_POSTPROCESSING is FALSE, so it won't run unless the user changes that
variable to TRUE)
@TeaganKing TeaganKing marked this pull request as ready for review February 11, 2025 19:17
@TeaganKing TeaganKing changed the title Updates in template.cupid for cupid workflow Updates in template.cupid and config_workflow.xml for cupid workflow Feb 11, 2025
@TeaganKing
Copy link
Contributor Author

This will depend on the related CUPiD PR, then the CMEPS PR, then the CIME PR.

@TeaganKing TeaganKing requested a review from billsacks February 11, 2025 21:00
Copy link
Member

@billsacks billsacks 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 your comments and changes, @TeaganKing - and for all of your work in getting CUPiD plugged in to the CESM workflow! This looks good to me, though I noticed one thing that I think may be a typo - see my one new comment below. Once you check on that, let me know if you feel this is ready to merge from your perspective; if so, I can merge it.

if [ "${CUPID_RUN_ADF}" == "TRUE" ]; then
{{ SRCROOT }}/tools/CUPiD/helper_scripts/generate_adf_config_file.py \
--cesm-root {{ SRCROOT }} \
--cupid-config-loc {{ SRCROOT }}/tools/CUPiD/examples/{{ CUPID_EXAMPLE }} \
Copy link
Member

Choose a reason for hiding this comment

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

Just want to check here: is it correct to have {{ CUPID_EXAMPLE }} here (which I think suggests it gets filled in from the template?) instead of "${CUPID_EXAMPLE}" (from the xml variable)? I'm thinking it should be the latter, but I may be missing something.

@billsacks
Copy link
Member

let me know if you feel this is ready to merge from your perspective; if so, I can merge it.

Actually, I see that this has some dependencies, so I'm thinking we won't want to merge this until the dependencies are merged, but let me know if I'm misunderstanding.

@TeaganKing
Copy link
Contributor Author

Yes, this does have some dependencies, so we need to hold off on actually merging it. I just wanted to see if I had adequately addressed your requested changes. Thanks for all of your suggestions!

Copy link
Member

@billsacks billsacks 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 the fix @TeaganKing - looks good to me now!

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.

4 participants