Skip to content

Commit 9cdc75a

Browse files
committed
Merge tag 'ctsm5.1.dev142' into tillage-mike-merge142
b4b changes to Python scripts, history lists, tech note, and clm_time_manager. * Add system and unit tests for making fsurdat with all crops everywhere (ESCOMP#2081) * Rework master_list* files etc. (ESCOMP#2087) * Fixes to methane Tech Note (ESCOMP#2091) * Add is_doy_in_interval() function (ESCOMP#2158) * Avoid using subprocess.run() in FSURDATMODIFYCTSM (ESCOMP#2125) Closes issues: * Add unit test for making fsurdat with all crops everywhere (ESCOMP#2079) * Rework master_list_(no)?fates.rst? (ESCOMP#2083) * conda run -n can fail if a conda environment is already active (ESCOMP#2109) * conda fails to load for SystemTests (ESCOMP#2111)
2 parents cd3da65 + 2e2434d commit 9cdc75a

1,370 files changed

Lines changed: 161924 additions & 54531 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config_files.xml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,31 @@
55
<entry_id>
66

77
<!-- This is the same as the default entry in
8-
cime/config/cesm/config_files.xml except for the value for clm:
9-
In a standalone clm checkout, COMP_ROOT_DIR_LND is $SRCROOT
8+
cime/config/cesm/config_files.xml except for the value for CLM:
9+
In a standalone CLM checkout, COMP_ROOT_DIR_LND is $SRCROOT
1010
rather than $SRCROOT/components/clm.
1111
1212
However, because of the way overrides are handled, we need to
1313
re-specify the full information here rather than just overriding
14-
the value for clm.
14+
the value for CLM.
1515
-->
1616
<entry id="COMP_ROOT_DIR_LND">
1717
<type>char</type>
1818
<default_value>unset</default_value>
1919
<values>
20-
<value component="clm" >$SRCROOT</value>
21-
<value component="dlnd" >$CIMEROOT/src/components/data_comps/dlnd</value>
22-
<value component="slnd" >$CIMEROOT/src/components/stub_comps/slnd</value>
23-
<value component="xlnd" >$CIMEROOT/src/components/xcpl_comps/xlnd</value>
20+
<value component="clm" >$SRCROOT</value>
21+
<value component="slim" >$SRCROOT/components/slim/</value>
22+
<value component="dlnd" comp_interface="mct" >$SRCROOT/components/cpl7/components/data_comps_$COMP_INTERFACE/dlnd</value>
23+
<value component="dlnd" comp_interface="nuopc" >$SRCROOT/components/cdeps/dlnd</value>
24+
<value component="slnd" comp_interface="mct" >$SRCROOT/components/cpl7/components/stub_comps_$COMP_INTERFACE/slnd</value>
25+
<value component="slnd" comp_interface="nuopc" >$CIMEROOT/CIME/non_py/src/components/stub_comps_$COMP_INTERFACE/slnd</value>
26+
<value component="xlnd" comp_interface="mct" >$SRCROOT/components/cpl7/components/xcpl_comps_$COMP_INTERFACE/xlnd</value>
27+
<value component="xlnd" comp_interface="nuopc" >$CIMEROOT/CIME/non_py/src/components/xcpl_comps_$COMP_INTERFACE/xlnd</value>
2428
</values>
2529
<group>case_comps</group>
2630
<file>env_case.xml</file>
2731
<desc>Root directory of the case land model component </desc>
28-
<schema>$CIMEROOT/config/xml_schemas/config_compsets.xsd</schema>
32+
<schema>$CIMEROOT/CIME/data/config/xml_schemas/config_compsets.xsd</schema>
2933
</entry>
3034

3135
</entry_id>

.git-blame-ignore-revs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Ran python directory through black python formatter
2+
d229b5c6689efc4c2a6cef077515c4ccd5c18ff6
3+
4cd83cb3ee6d85eb909403487abf5eeaf4d98911
4+
0aa2957c1f8603c63fa30b11295c06cfddff44a5
5+
2cdb380febb274478e84cd90945aee93f29fa2e6
6+
e44dc469439e02e9ee582dab274d890ebdfab104
7+
565e7bcacbb0bba20ff80d680d8ad769676641c6
8+
b88e1cd1b28e3609684c79a2ec0e88f26cfc362b
9+
51c102c5df2e0ef971b5f8eeeb477567899af63a
10+
7dacad70e74e2ec97f6492d4e7a3cb5dd498bcd7
11+
b771971e3299c4fa56534b93421f7a2b9c7282fd
12+
9de88bb57ea9855da408cbec1dc8acb9079eda47
13+
8bc4688e52ea23ef688e283698f70a44388373eb
14+
0a5a9e803b56ec1bbd6232eff1c99dbbeef25eb7
15+
810cb346f05ac1aabfff931ab1a2b7b584add241
16+
5933b0018f8e29413e30dda9b906370d147bad45
17+
# Ran SystemTests and python/ctsm through black python formatter
18+
5364ad66eaceb55dde2d3d598fe4ce37ac83a93c
19+
8056ae649c1b37f5e10aaaac79005d6e3a8b2380
20+
540b256d1f3382f4619d7b0877c32d54ce5c40b6
21+
8a168bb0895f4f2421608dd2589398e13a6663e6

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.svg filter=lfs diff=lfs merge=lfs -text
2+
*.png filter=lfs diff=lfs merge=lfs -text
3+
*.jpg filter=lfs diff=lfs merge=lfs -text
4+
*.jpeg filter=lfs diff=lfs merge=lfs -text
5+
*.gif filter=lfs diff=lfs merge=lfs -text
6+
*.pdf filter=lfs diff=lfs merge=lfs -text
7+
*.nc filter=lfs diff=lfs merge=lfs -text
File renamed without changes.

.github/ISSUE_TEMPLATE/02_support_needed.md

Lines changed: 0 additions & 36 deletions
This file was deleted.
File renamed without changes.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: CESM forums
4+
url: https://bb.cgd.ucar.edu/cesm/forums/ctsm-clm-mosart-rtm.134/
5+
about: For support with model use, troubleshooting, etc., please use the CTSM forum

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ Testing performed, if any:
1616
(Documentation on system testing is here: https://github.com/ESCOMP/ctsm/wiki/System-Testing-Guide)
1717
(aux_clm on cheyenne for intel/gnu and izumi for intel/gnu/nag/pgi is the standard for tags on master)
1818

19-
**NOTE: Be sure to check your Coding style against the standard:**
20-
https://github.com/ESCOMP/ctsm/wiki/CTSM-coding-guidelines
19+
**NOTE: Be sure to check your coding style against the standard
20+
(https://github.com/ESCOMP/ctsm/wiki/CTSM-coding-guidelines) and review
21+
the list of common problems to watch out for
22+
(https://github.com/ESCOMP/CTSM/wiki/List-of-common-problems).**

.github/workflows/black.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: black check on push and PR
2+
#
3+
# Run the python formatting in check mode
4+
#
5+
on: [push, pull_request]
6+
7+
jobs:
8+
black-check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
# Checkout the code
12+
- uses: actions/checkout@v2
13+
# Use the latest stable version of the github action
14+
- uses: psf/black@stable
15+
with:
16+
# Use options and version identical to the conda environment
17+
# Using pyproject.toml makes sure this testing is consistent with our python directory testing
18+
options: "--check --config python/pyproject.toml"
19+
src: "./python"
20+
# Version should be coordinated with the ctsm_pylib conda environment under the python directory
21+
version: "22.3.0"
22+
# Actions identical to above for each directory and source file we need to check (arrays aren't allowed for src: field)
23+
- uses: psf/black@stable
24+
with:
25+
options: "--check --config python/pyproject.toml"
26+
src: "./cime_config/SystemTests"
27+
version: "22.3.0"
28+
- uses: psf/black@stable
29+
with:
30+
options: "--check --config python/pyproject.toml"
31+
src: "./cime_config/buildlib"
32+
version: "22.3.0"
33+
- uses: psf/black@stable
34+
with:
35+
options: "--check --config python/pyproject.toml"
36+
src: "./cime_config/buildnml"
37+
version: "22.3.0"

.gitignore

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,44 @@
11
# directories checked out by manage_externals, and other files created
22
# by manage_externals
33
manage_externals.log
4+
ccs_config
45
/src/fates/
5-
/tools/PTCLM/
66
/cime/
77
/components/
8+
/libraries/
9+
/share/
10+
/doc/doc-builder/
811

912
# ignore svn directories
1013
**/.svn/**
1114
.svn/
1215

13-
# binary files
16+
# netcdf files
1417
*.nc
18+
# but don't ignore netcdf files here:
19+
!/python/ctsm/test/testinputs/*.nc
1520

1621
# editor files
1722
*.swp
1823
*~
24+
.vscode/
25+
26+
# vim files (from https://github.com/github/gitignore/blob/master/Global/Vim.gitignore)
27+
# Swap
28+
[._]*.s[a-v][a-z]
29+
[._]*.sw[a-p]
30+
[._]s[a-rt-v][a-z]
31+
[._]ss[a-gi-z]
32+
[._]sw[a-p]
33+
# Session
34+
Session.vim
35+
# Temporary
36+
.netrwhist
37+
# (removed *~ because it is listed above)
38+
# Auto-generated tag files
39+
tags
40+
# Persistent undo
41+
[._]*.un~
1942

2043
# mac files
2144
.DS_Store
@@ -30,16 +53,6 @@ CMakeFiles/
3053
# unit testing directories
3154
/src/unit_tests.*
3255

33-
# files generated by the unit test build
34-
/src/dyn_subgrid/dynVarMod.F90
35-
/src/dyn_subgrid/dynVarTimeInterpMod.F90
36-
/src/dyn_subgrid/dynVarTimeUninterpMod.F90
37-
/src/utils/array_utils.F90
38-
/src/unit_test_stubs/utils/restUtilMod_stub.F90
39-
/src/unit_test_stubs/main/ncdio_pio_fake.F90
40-
/src/unit_test_stubs/main/ncdio_var.F90
41-
/src/unit_test_shr/unittestArrayMod.F90
42-
4356
# cime_config
4457
buildnmlc
4558

@@ -55,6 +68,7 @@ buildnmlc
5568
/bld/unit_testers/drv_flds_in*
5669
/bld/unit_testers/temp_file.txt*
5770
/bld/unit_testers/user_nl_clm_real_parameters*
71+
/bld/unit_testers/user_nl_ctsm_real_parameters*
5872
/bld/unit_testers/env_run.xml
5973

6074
# tools testing output
@@ -69,10 +83,13 @@ surfdata_*.namelist
6983
landuse.timeseries_*.namelist
7084
landuse.timeseries_*.log
7185
landuse_timeseries_*.txt
72-
clm.input_data_list
73-
clm.input_data_list.previous
86+
ctsm.input_data_list
87+
ctsm.input_data_list.previous
7488
*.stdout.txt.o*
7589

90+
# mksurfdata unit tests
91+
unit_test_build
92+
7693
# Tools executables
7794
/tools/mksurfdata_map/mksurfdata_map
7895
/tools/mkprocdata_map/mkprocdata_map
@@ -88,6 +105,13 @@ clm.input_data_list.previous
88105
/tools/mkmapdata/regrid.o*
89106
/tools/mkmapdata/map*.nc
90107

108+
# run_neon output directories
109+
/tools/site_and_regional/listing.csv
110+
/tools/site_and_regional/????/
111+
/tools/site_and_regional/????.ad/
112+
/tools/site_and_regional/????.postad/
113+
/tools/site_and_regional/????.transient/
114+
91115
# build output
92116
*.o
93117
*.mod

0 commit comments

Comments
 (0)