Skip to content

Commit

Permalink
Remove project checks from issue-closing script.
Browse files Browse the repository at this point in the history
  • Loading branch information
nusbaume committed Aug 19, 2024
1 parent 782f134 commit ebdcb7b
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 236 deletions.
256 changes: 32 additions & 224 deletions .github/scripts/branch_pr_issue_closer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

import re
import sys
import subprocess
import shlex
import argparse

from github import Github
Expand All @@ -31,42 +29,6 @@
#HELPER FUNCTIONS
#################

#+++++++++++++++++++++++++++++++++++++++++
#Curl command needed to move project cards
#+++++++++++++++++++++++++++++++++++++++++

def project_card_move(oa_token, column_id, card_id):

"""
Currently pyGithub doesn't contain the methods required
to move project cards from one column to another, so
the unix curl command must be called directly, which is
what this function does.
The specific command-line call made is:
curl -H "Authorization: token OA_token" -H \
"Accept: application/vnd.github.inertia-preview+json" \
-X POST -d '{"position":"top", "column_id":<column_id>}' \
https://api.github.com/projects/columns/cards/<card_id>/moves
"""

#create required argument strings from inputs:
github_oa_header = ''' "Authorization: token {0}" '''.format(oa_token)
github_url_str = '''https://api.github.com/projects/columns/cards/{0}/moves'''.format(card_id)
json_post_inputs = ''' '{{"position":"top", "column_id":{}}}' '''.format(column_id)

#Create curl command line string:
curl_cmdline = '''curl -H '''+github_oa_header+''' -H "Accept: application/vnd.github.inertia-preview+json" -X POST -d '''+\
json_post_inputs+''' '''+github_url_str

#Split command line string into argument list:
curl_arg_list = shlex.split(curl_cmdline)

#Run command using subprocess:
subprocess.run(curl_arg_list, check=True)

#++++++++++++++++++++++++++++++
#Input Argument parser function
#++++++++++++++++++++++++++++++
Expand Down Expand Up @@ -101,7 +63,7 @@ def end_script(msg):
"""
Prints message to screen, and then exits script.
"""
print("\n{}\n".format(msg))
print(f"\n{msg}\n")
print("Issue closing check has completed successfully.")
sys.exit(0)

Expand Down Expand Up @@ -137,11 +99,10 @@ def _main_prog():

ghub = Github(token)

#++++++++++++++++++++
#Open ESCOMP/CAM repo
#++++++++++++++++++++
#+++++++++++++++++++++
#Open NCAR/CAMDEN repo
#+++++++++++++++++++++

#Official CAM repo:
cam_repo = ghub.get_repo("ESCOMP/CAM")

#+++++++++++++++++++++++++++++
Expand All @@ -162,6 +123,9 @@ def _main_prog():
#Search for merge text, starting at beginning of message:
commit_msg_match = pr_merge_pattern.match(commit_message)

#Initialize variables:
pr_num = 0

#Check if match exists:
if commit_msg_match is not None:
#If it does then pull out text immediately after message:
Expand All @@ -174,7 +138,7 @@ def _main_prog():
first_word = post_msg_word_list[0]

#Print merged pr number to screen:
print("Merged PR: {}".format(first_word))
print(f"Merged PR: {first_word}")

try:
#Try assuming the word is just a number:
Expand Down Expand Up @@ -251,27 +215,28 @@ def _main_prog():
pr_msg_lower = merged_pull.body.lower()

#search for at least one keyword:
word_matches = []
if keyword_pattern.search(pr_msg_lower) is not None:
#If at least one keyword is found, then determine location of every keyword instance:
word_matches = keyword_pattern.finditer(pr_msg_lower)
else:
endmsg = "Pull request was merged without using any of the keywords. Thus there are no issues to close."
end_script(endmsg)

#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#Extract issue and PR numbers associated with found keywords in merged PR message
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#Extract issue and PR numbers associated with found keywords in merged PR message
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

#create issue pattern ("the number symbol {#} + a number"),
#which ends with either a space, a comma, a period, or
#the end of the string itself:
issue_pattern = re.compile(r'#[0-9]+(\s|,|$)|.')

#Create new "close" issues list:
close_issues = list()
close_issues = []

#Create new "closed" PR list:
close_pulls = list()
close_pulls = []

#Search text right after keywords for possible issue numbers:
for match in word_matches:
Expand Down Expand Up @@ -299,13 +264,13 @@ def _main_prog():
#so set the issue number to one that will never be found:
issue_num = -9999

#Check that number is actually for an issue (as opposed to a PR):
if issue_num in open_issues:
#Add issue number to "close issues" list:
close_issues.append(issue_num)
elif issue_num in open_pulls:
#If in fact a PR, then add to PR list:
#Check if number is actually for a PR (as opposed to an issue):
if issue_num in open_pulls:
#Add PR number to "close pulls" list:
close_pulls.append(issue_num)
elif issue_num in open_issues:
#If in fact an issue, then add to "close issues" list:
close_issues.append(issue_num)

#If no issue numbers are present after any of the keywords, then exit script:
if not close_issues and not close_pulls:
Expand All @@ -322,183 +287,26 @@ def _main_prog():
print("PRs referenced by the merged PR: "+", ".join(\
str(pull) for pull in close_pulls))

#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#Determine name of project associated with merged Pull Request
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

#Pull-out all projects from repo:
projects = cam_repo.get_projects()

#Initalize modified project name:
proj_mod_name = None

#Loop over all repo projects:
for project in projects:
#Pull-out columns from each project:
proj_columns = project.get_columns()

#Loop over columns:
for column in proj_columns:

#check if column name is "Completed Tags"
if column.name == "Completed tags":
#If so, then extract cards:
cards = column.get_cards()

#Loop over cards:
for card in cards:
#Extract card content:
card_content = card.get_content()

#Next, check if card number exists and matches merged PR number:
if card_content is not None and card_content.number == pr_num:
#If so, and if Project name is None, then set string:
if proj_mod_name is None:
proj_mod_name = project.name
#Break out of card loop:
break

#If already set, then somehow merged PR is in two different projects,
#which is not what this script is expecting, so just exit:
endmsg = "Merged Pull Request found in two different projects, so script will do nothing."
end_script(endmsg)

#Print project name associated with merged PR:
print("merged PR project name: {}".format(proj_mod_name))

#++++++++++++++++++++++++++++++++++++++++
#Extract repo project "To do" card issues
#++++++++++++++++++++++++++++++++++++++++

#Initalize issue counting dictionary:
proj_issues_count = dict()

#Initalize issue id to project card id dictionary:
proj_issue_card_ids = dict()

#Initialize list for issues that have already been closed:
already_closed_issues = list()

#Loop over all repo projects:
for project in projects:

#Next, pull-out columns from each project:
proj_columns = project.get_columns()

#Loop over columns:
for column in proj_columns:
#Check if column name is "To do"
if column.name == "To do":
#If so, then extract cards:
cards = column.get_cards()

#Loop over cards:
for card in cards:
#Extract card content:
card_content = card.get_content()

#Next, check if card issue number matches any of the "close" issue numbers from the PR:
if card_content is not None and card_content.number in close_issues:

#If so, then check if issue number is already in proj_issues_count:
if card_content.number in proj_issues_count:
#Add one to project issue counter:
proj_issues_count[card_content.number] += 1

#Also add issue id and card id to id dictionary used for card move, if in relevant project:
if project.name == proj_mod_name:
proj_issue_card_ids[card_content.number] = card.id

else:
#If not, then append to project issues count dictionary:
proj_issues_count[card_content.number] = 1

#Also add issue id and card id to id dictionary used for card move, if in relevant project:
if project.name == proj_mod_name:
proj_issue_card_ids[card_content.number] = card.id

#Otherwise, check if column name matches "closed issues" column:
elif column.name == "closed issues" and project.name == proj_mod_name:
#Save column id:
column_target_id = column.id

#Extract cards:
closed_cards = column.get_cards()

#Loop over cards:
for closed_card in closed_cards:
#Extract card content:
closed_card_content = closed_card.get_content()

#Check if card issue number matches any of the "close" issue numbers from the PR:
if closed_card_content is not None and closed_card_content.number in close_issues:
#If issue number matches, then it likely means the same
#commit message or issue number reference was used in multiple
#pushes to the same repo (e.g., for a PR and then a tag). Thus
#the issue should be marked as "already closed":
already_closed_issues.append(closed_card_content.number)

#Remove all issues from issue dictionary that are "already closed":
for already_closed_issue_num in already_closed_issues:
if already_closed_issue_num in proj_issues_count:
proj_issues_count.pop(already_closed_issue_num)

#If no project cards are found that match the issue, then exit script:
if not proj_issues_count:
endmsg = "No project cards match the issue being closed, so the script will do nothing."
end_script(endmsg)
#++++++++++++++++++++++++++++++++++++++++++++++
#Attempt to close all referenced issues and PRs
#++++++++++++++++++++++++++++++++++++++++++++++

#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#Check if the number of "To-do" project cards matches the total number
#of merged PRs for each 'close' issue.
#
#Then, close all issues for which project cards equals merged PRs
#
#If not, then simply move the project card to the relevant project's
#"closed issues" column.
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

#Loop over project issues and counts that have been "closed" by merged PR:
for issue_num, issue_count in proj_issues_count.items():

#If issue count is just one, then close issue:
if issue_count == 1:
#Extract github issue object:
cam_issue = cam_repo.get_issue(number=issue_num)
#Close issue:
cam_issue.edit(state='closed')
print("Issue #{} has been closed.".format(issue_num))
else:
#Extract card id from id dictionary:
if issue_num in proj_issue_card_ids:
card_id = proj_issue_card_ids[issue_num]
else:
#If issue isn't in dictionary, then it means the issue
#number was never found in the "To do" column, which
#likely means the user either referenced the wrong
#issue number, or the issue was never assigned to the
#project. Warn user and then exit with a non-zero
#error so that the Action fails:
endmsg = 'Issue #{} was not found in the "To Do" Column of the "{}" project.\n' \
'Either the wrong issue number was referenced, or the issue was never ' \
'attached to the project.'.format(issue_num, proj_mod_name)
print(endmsg)
sys.exit(1)

#Then move the card on the relevant project page to the "closed issues" column:
project_card_move(token.strip(), column_target_id, card_id)

#++++++++++++++++++++++++++++++++++++++++++++++++++++++
#Finally, close all Pull Requests in "close_pulls" list:
#++++++++++++++++++++++++++++++++++++++++++++++++++++++
#Loop over referenced issues:
for issue_num in close_issues:
#Extract github issue object:
cam_issue = cam_repo.get_issue(number=issue_num)
#Close issue:
cam_issue.edit(state='closed')
print(f"Issue #{issue_num} has been closed.")

#Loop over referenced PRs:
for pull_num in close_pulls:
#Extract Pull request object:
cam_pull = cam_repo.get_pull(number=pull_num)

#Close Pull Request:
cam_pull.edit(state='closed')
print("Pull Request #{} has been closed.".format(pull_num))
print(f"Pull Request #{pull_num} has been closed.")

#++++++++++
#End script
Expand Down
2 changes: 1 addition & 1 deletion cime
Submodule cime updated 38 files
+18 −6 .github/workflows/testing.yml
+100 −41 CIME/Tools/Makefile
+4 −27 CIME/Tools/xmlchange
+1 −2 CIME/XML/files.py
+16 −10 CIME/build.py
+4 −5 CIME/build_scripts/buildlib.mpi-serial
+1 −13 CIME/config.py
+68 −39 CIME/data/config/cesm/config_files.xml
+10 −19 CIME/locked_files.py
+1 −1 CIME/non_py/src/timing/Makefile
+1 −1 CIME/scripts/query_config.py
+3 −3 CIME/tests/base.py
+4 −6 CIME/tests/test_sys_cime_case.py
+18 −11 CIME/tests/test_sys_create_newcase.py
+1 −3 CIME/tests/test_sys_full_system.py
+1 −1 CIME/tests/test_sys_manage_and_query.py
+0 −11 CIME/tests/test_unit_locked_files.py
+1 −1 CIME/utils.py
+2 −4 CIME/wait_for_tests.py
+10 −1 CMakeLists.txt
+52 −0 Externals.cfg
+7 −0 Externals_cime.cfg
+24 −7 docker/Dockerfile
+39 −57 docker/entrypoint.sh
+38 −0 tools/load_balancing_tool/LICENSE.TXT
+13 −0 tools/load_balancing_tool/README
+443 −0 tools/load_balancing_tool/layouts.py
+432 −0 tools/load_balancing_tool/load_balancing_solve.py
+396 −0 tools/load_balancing_tool/load_balancing_submit.py
+388 −0 tools/load_balancing_tool/optimize_model.py
+0 −0 tools/load_balancing_tool/tests/__init__.py
+187 −0 tools/load_balancing_tool/tests/atm_lnd.py
+29 −0 tools/load_balancing_tool/tests/example.json
+335 −0 tools/load_balancing_tool/tests/load_balancing_test.py
+39 −0 tools/load_balancing_tool/tests/test.xml
+187 −0 tools/load_balancing_tool/tests/timing/timing_1
+187 −0 tools/load_balancing_tool/tests/timing/timing_2
+187 −0 tools/load_balancing_tool/tests/timing/timing_3
2 changes: 1 addition & 1 deletion components/clm
Submodule clm updated 73 files
+0 −1 .git-blame-ignore-revs
+4 −0 .gitignore
+0 −40 .gitmodules
+3 −3 .lib/git-fleximod/git_fleximod/cli.py
+31 −50 .lib/git-fleximod/git_fleximod/git_fleximod.py
+1 −1 .lib/git-fleximod/git_fleximod/gitmodules.py
+6 −6 .lib/git-fleximod/git_fleximod/utils.py
+1 −1 .lib/git-fleximod/pyproject.toml
+1 −1 .lib/git-fleximod/tbump.toml
+2 −2 .lib/git-fleximod/tests/conftest.py
+7 −6 .lib/git-fleximod/tests/test_d_complex.py
+1 −1 README
+14 −17 README_GITFLEXIMOD.rst
+1 −2 bld/CLMBuildNamelist.pm
+27 −520 bld/namelist_files/namelist_defaults_ctsm.xml
+2 −7 bld/namelist_files/namelist_definition_ctsm.xml
+13 −13 bld/unit_testers/build-namelist_test.pl
+11 −85 cime_config/SystemTests/rxcropmaturity.py
+0 −6 cime_config/SystemTests/rxcropmaturityskipgen.py
+32 −36 cime_config/config_component.xml
+0 −10 cime_config/config_tests.xml
+9 −2 cime_config/testdefs/ExpectedTestFails.xml
+40 −63 cime_config/testdefs/testlist_clm.xml
+1 −0 cime_config/testdefs/testmods_dirs/clm/clm60cam6LndTuningModeCiso/include_user_mods
+5 −0 cime_config/testdefs/testmods_dirs/clm/clm60cam6LndTuningModeCiso/user_nl_clm
+1 −0 cime_config/testdefs/testmods_dirs/clm/clm60cam6LndTuningModeZDustSoilErod/include_user_mods
+3 −0 cime_config/testdefs/testmods_dirs/clm/clm60cam6LndTuningModeZDustSoilErod/user_nl_clm
+1 −0 cime_config/testdefs/testmods_dirs/clm/clm60cam6LndTuningMode_1979Start/include_user_mods
+0 −0 cime_config/testdefs/testmods_dirs/clm/clm60cam6LndTuningMode_1979Start/shell_commands
+1 −0 cime_config/testdefs/testmods_dirs/clm/clm60cam6LndTuningMode_2013Start/include_user_mods
+0 −0 cime_config/testdefs/testmods_dirs/clm/clm60cam6LndTuningMode_2013Start/shell_commands
+0 −1 cime_config/testdefs/testmods_dirs/clm/clm60cam7LndTuningMode/include_user_mods
+0 −5 cime_config/testdefs/testmods_dirs/clm/clm60cam7LndTuningMode/shell_commands
+0 −1 cime_config/testdefs/testmods_dirs/clm/clm60cam7LndTuningMode_1979Start/include_user_mods
+0 −1 cime_config/testdefs/testmods_dirs/clm/clm60cam7LndTuningMode_2013Start/include_user_mods
+1 −1 cime_config/usermods_dirs/PLUMBER2/defaults/user_nl_datm_streams
+0 −388 doc/ChangeLog
+0 −5 doc/ChangeSum
+2 −2 doc/README.CHECKLIST.master_tags
+1 −1 python/ctsm/crop_calendars/check_constant_vars.py
+11 −23 python/ctsm/crop_calendars/check_rx_obeyed.py
+4 −17 python/ctsm/crop_calendars/check_rxboth_run.py
+6 −23 python/ctsm/crop_calendars/cropcal_module.py
+0 −154 python/ctsm/crop_calendars/interpolate_gdds.py
+3 −3 python/ctsm/run_sys_tests.py
+1 −1 python/ctsm/test/test_unit_gen_mksurfdata_jobscript_single.py
+0 −3 src/biogeochem/CMakeLists.txt
+1 −1 src/biogeochem/CNVegStateType.F90
+1 −1 src/biogeochem/CNVegetationFacade.F90
+438 −281 src/biogeochem/DUSTMod.F90
+0 −62 src/biogeochem/DustEmisFactory.F90
+0 −470 src/biogeochem/DustEmisZender2003.F90
+0 −1 src/biogeochem/test/CMakeLists.txt
+0 −6 src/biogeochem/test/DustEmis_test/CMakeLists.txt
+0 −291 src/biogeochem/test/DustEmis_test/test_DustEmisZender2003.pf
+0 −2 src/biogeophys/CMakeLists.txt
+0 −17 src/biogeophys/CanopyStateType.F90
+0 −18 src/biogeophys/FrictionVelocityMod.F90
+2 −15 src/biogeophys/SaturatedExcessRunoffMod.F90
+2 −80 src/biogeophys/SoilStateInitTimeConstMod.F90
+0 −1 src/biogeophys/test/CMakeLists.txt
+0 −6 src/biogeophys/test/SoilStateInitTimeConst_test/CMakeLists.txt
+0 −81 src/biogeophys/test/SoilStateInitTimeConst_test/test_dust_soil_clay_functions.pf
+6 −5 src/main/clm_driver.F90
+8 −9 src/main/clm_instMod.F90
+0 −2 src/main/clm_varctl.F90
+1 −6 src/main/controlMod.F90
+4 −4 src/main/lnd2atmMod.F90
+0 −1 src/unit_test_shr/CMakeLists.txt
+0 −251 src/unit_test_shr/unittestDustEmisInputs.F90
+0 −1 src/unit_test_stubs/share_esmf/CMakeLists.txt
+0 −88 src/unit_test_stubs/share_esmf/ZenderSoilErodStreamType.F90
+1 −1 tools/mksurfdata_esmf/README.md
2 changes: 1 addition & 1 deletion components/mizuRoute
Submodule mizuRoute updated 38 files
+14 −0 Externals.cfg
+ netcdf_test/stuff.nc
+49 −53 route/build/Makefile
+0 −109 route/build/README_NCAR_HPC_build
+88 −0 route/build/README_cheyenne_build
+6 −6 route/build/cpl/RtmMod.F90
+0 −6 route/build/cpl/nuopc/rof_comp_nuopc.F90
+64 −21 route/build/lib/Makefile
+2 −32 route/build/src/csv_data.f90
+10 −7 route/build/src/dataTypes.f90
+0 −2 route/build/src/dfw_route.f90
+2 −6 route/build/src/globalData.f90
+17 −51 route/build/src/histVars_data.f90
+6 −23 route/build/src/historyFile.f90
+0 −488 route/build/src/hydraulic.f90
+2 −16 route/build/src/init_model_data.f90
+2 −5 route/build/src/irf_route.f90
+0 −2 route/build/src/kwe_route.f90
+2 −12 route/build/src/kwt_route.f90
+1 −3 route/build/src/mc_route.f90
+0 −48 route/build/src/mpi_utils.f90
+1 −1 route/build/src/network_topo.f90
+58 −246 route/build/src/nr_utils.f90
+14 −19 route/build/src/popMetadat.f90
+6 −0 route/build/src/process_ntopo.f90
+1 −1 route/build/src/process_remap.f90
+27 −35 route/build/src/public_var.f90
+1 −31 route/build/src/read_control.f90
+1 −1 route/build/src/standalone/get_basin_runoff.f90
+41 −65 route/build/src/standalone/model_setup.f90
+198 −237 route/build/src/standalone/read_runoff.f90
+1 −6 route/build/src/var_lookup.f90
+2 −33 route/build/src/write_restart_pio.f90
+21 −40 route/build/src/write_simoutput_pio.f90
+4 −0 route/build/src/write_streamSeg.f90
+4 −11 route/settings/SAMPLE-coupled.control
+2 −4 route/settings/SAMPLE.control
+2 −0 route/settings/mizuRoute_control.py
2 changes: 1 addition & 1 deletion components/mosart
Submodule mosart updated 34 files
+10 −10 cime_config/buildnml
+28 −68 cime_config/namelist_definition_mosart.xml
+12 −21 cime_config/testdefs/testlist_mosart.xml
+3 −3 cime_config/testdefs/testmods_dirs/mosart/default/user_nl_mosart
+1 −1 cime_config/testdefs/testmods_dirs/mosart/mosartCold/user_nl_mosart
+1 −1 cime_config/user_nl_mosart
+0 −71 docs/ChangeLog
+141 −112 src/cpl/nuopc/rof_comp_nuopc.F90
+111 −117 src/cpl/nuopc/rof_import_export.F90
+267 −170 src/riverroute/MOSART_physics_mod.F90
+49 −0 src/riverroute/RtmDateTime.F90
+15 −8 src/riverroute/RtmFileUtils.F90
+1,798 −0 src/riverroute/RtmHistFile.F90
+186 −0 src/riverroute/RtmHistFlds.F90
+1,936 −0 src/riverroute/RtmIO.F90
+2,266 −0 src/riverroute/RtmMod.F90
+120 −130 src/riverroute/RtmRestFile.F90
+53 −0 src/riverroute/RtmSpmd.F90
+1,090 −0 src/riverroute/RtmTimeManager.F90
+134 −0 src/riverroute/RtmVar.F90
+352 −0 src/riverroute/RunoffMod.F90
+0 −267 src/riverroute/mosart_budget_type.F90
+0 −1,246 src/riverroute/mosart_control_type.F90
+0 −19 src/riverroute/mosart_data.F90
+0 −927 src/riverroute/mosart_driver.F90
+0 −1,714 src/riverroute/mosart_histfile.F90
+0 −203 src/riverroute/mosart_histflds.F90
+0 −1,935 src/riverroute/mosart_io.F90
+0 −30 src/riverroute/mosart_tctl_type.F90
+0 −859 src/riverroute/mosart_timemanager.F90
+0 −33 src/riverroute/mosart_tparameter_type.F90
+0 −677 src/riverroute/mosart_tspatialunit_type.F90
+0 −162 src/riverroute/mosart_tstatusflux_type.F90
+0 −61 src/riverroute/mosart_vars.F90
2 changes: 1 addition & 1 deletion components/rtm
2 changes: 1 addition & 1 deletion share
Submodule share updated 72 files
+0 −54 .github/actions/buildshare/action.yaml
+0 −108 .github/workflows/extbuild.yml
+177 −0 .github/workflows/srt.yml
+0 −137 CMakeLists.txt
+12 −8 buildlib.csm_share
+0 −71 cmake/Compilers.cmake
+0 −147 cmake/FindESMF.cmake
+0 −134 cmake/Sourcelist_utils.cmake
+0 −169 cmake/add_pfunit_ctest.cmake
+0 −90 cmake/genf90_utils.cmake
+17 −10 src/CMakeLists.txt
+19 −0 src/esmf_wrf_timemgr/CMakeLists.txt
+19 −0 src/esmf_wrf_timemgr/ESMF.F90
+102 −0 src/esmf_wrf_timemgr/ESMF_AlarmClockMod.F90
+1,040 −0 src/esmf_wrf_timemgr/ESMF_AlarmMod.F90
+1,089 −0 src/esmf_wrf_timemgr/ESMF_BaseMod.F90
+459 −0 src/esmf_wrf_timemgr/ESMF_BaseTimeMod.F90
+502 −0 src/esmf_wrf_timemgr/ESMF_CalendarMod.F90
+1,247 −0 src/esmf_wrf_timemgr/ESMF_ClockMod.F90
+83 −0 src/esmf_wrf_timemgr/ESMF_FractionMod.F90
+36 −0 src/esmf_wrf_timemgr/ESMF_Macros.inc
+45 −0 src/esmf_wrf_timemgr/ESMF_ShrTimeMod.F90
+167 −0 src/esmf_wrf_timemgr/ESMF_Stubs.F90
+1,739 −0 src/esmf_wrf_timemgr/ESMF_TimeIntervalMod.F90
+45 −0 src/esmf_wrf_timemgr/ESMF_TimeMgr.inc
+1,572 −0 src/esmf_wrf_timemgr/ESMF_TimeMod.F90
+60 −0 src/esmf_wrf_timemgr/Makefile
+65 −0 src/esmf_wrf_timemgr/MeatMod.F90
+19 −0 src/esmf_wrf_timemgr/README
+63 −0 src/esmf_wrf_timemgr/unittests/Makefile
+14 −0 src/esmf_wrf_timemgr/unittests/go.csh
+312 −0 src/esmf_wrf_timemgr/unittests/test.F90
+17 −0 src/esmf_wrf_timemgr/unittests/wrf_stuff.F90
+9 −0 src/esmf_wrf_timemgr/wrf_error_fatal.F90
+5 −0 src/esmf_wrf_timemgr/wrf_message.F90
+0 −1,468 src/m_MergeSorts.F90
+1,242 −0 src/mct_mod.F90
+0 −895 src/nuopc_shr_methods.F90
+1 −1 src/shr_assert_mod.F90.in
+16 −0 src/shr_flds_mod.F90
+3,463 −0 src/shr_map_mod.F90
+860 −0 src/shr_mct_mod.F90
+2 −2 src/shr_mpi_mod.F90
+817 −0 src/shr_pcdf_mod.F90
+23 −54 src/shr_reprosum_mod.F90
+2 −2 src/shr_spfn_mod.F90
+1 −1 src/shr_sys_mod.F90
+403 −0 src/shr_taskmap_mod.F90
+163 −0 test/old_unit_testers/Makefile
+327 −0 test/old_unit_testers/Mkdepends
+60 −0 test/old_unit_testers/Mksrcfiles
+212 −0 test/old_unit_testers/bundle_expected.F90
+7 −0 test/old_unit_testers/config.h
+369 −0 test/old_unit_testers/make.Macros
+10 −0 test/old_unit_testers/namelist
+2 −0 test/old_unit_testers/nl/atm.stdin
+2 −0 test/old_unit_testers/nl/cpl.stdin
+2 −0 test/old_unit_testers/nl/ice.stdin
+2 −0 test/old_unit_testers/nl/lnd.stdin
+2 −0 test/old_unit_testers/nl/ocn.stdin
+96 −0 test/old_unit_testers/run_dshr_bundle_test
+68 −0 test/old_unit_testers/run_file_test
+339 −0 test/old_unit_testers/test_mod.F90
+220 −0 test/old_unit_testers/test_shr_file.F90
+28 −0 test/old_unit_testers/test_shr_log.F90
+291 −0 test/old_unit_testers/test_shr_mpi.F90
+47 −0 test/old_unit_testers/test_shr_orb.F90
+156 −0 test/old_unit_testers/test_shr_scam.F90
+663 −0 test/old_unit_testers/test_shr_streams.F90
+75 −0 test/old_unit_testers/test_shr_sys.F90
+108 −0 test/old_unit_testers/test_shr_tInterp.F90
+6 −3 test/unit/shr_cal_test/CMakeLists.txt
2 changes: 1 addition & 1 deletion src/physics/clubb
Submodule clubb updated 349 files

0 comments on commit ebdcb7b

Please sign in to comment.