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

Add unit test for optional arguments, "optargs" #730

Merged
merged 2 commits into from
Jul 15, 2022

Conversation

apcraig
Copy link
Contributor

@apcraig apcraig commented Jul 13, 2022

PR checklist

  • Short (1 sentence) summary of your PR:
    Add unit test, optargs, to test ability to pass optional arguments down calling tree.
  • Developer(s):
    apcraig
  • Suggest PR reviewers from list in the column to the right.
  • Please copy the PR test results link or provide a summary of testing completed below.
    unittest_suite passes on Cheyenne with 3 compilers.
  • How much do the PR code changes differ from the unmodified code?
    • bit for bit
    • different at roundoff level
    • more substantial
  • Does this PR create or have dependencies on Icepack or any other models?
    • Yes
    • No
  • Does this PR add any new test cases?
    • Yes
    • No
  • Is the documentation being updated? ("Documentation" includes information on the wiki or in the .rst files from doc/source/, which are used to create the online technical docs at https://readthedocs.org/projects/cice-consortium-cice/. A test build of the technical docs will be performed as part of the PR testing.)
    • Yes
    • No, does the documentation need to be updated at a later time?
      • Yes
      • No
  • Please provide any additional information or relevant details below:

This is a standalone serial unit test. It does not need any Icepack or CICE code. It simply tests the ability pass optional arguments down a calling tree robustly. It does so with a set of simple serial tests.

unittest_suite passes on Cheyenne with 3 compilers. It will be interesting to see if this test passes on all machines and compilers as we move forward. Initial results suggests this can be used inside Icepack for optional arguments which should provide a method to support optional arguments more simply.

to pass optional arguments down the calling tree robustly whether they are
present or not.
@apcraig
Copy link
Contributor Author

apcraig commented Jul 13, 2022

@apcraig apcraig merged commit 1585c31 into CICE-Consortium:main Jul 15, 2022
dabail10 pushed a commit to ESCOMP/CICE that referenced this pull request Oct 4, 2022
* Add optargs "optional arguments" unit test.  This tests the ability
to pass optional arguments down the calling tree robustly whether they are
present or not.

* Add test to count optional arguments at 2nd level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants