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

Get tools and their testing working as well as build-namelist testing #228

Merged
merged 5 commits into from
Feb 2, 2018

Conversation

ekluzek
Copy link
Collaborator

@ekluzek ekluzek commented Jan 28, 2018

These changes get the tools and their testing working as well as the build-namelist testing. Currently it doesn't get PTCLM working though.

@ekluzek ekluzek self-assigned this Jan 28, 2018
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.

@ekluzek Thanks a lot for doing this! I have a few inline comments.

Also: Will the tools testing now only work within a standalone checkout, or will it still work from a CESM checkout, too? If the former, this should be mentioned somewhere (maybe in a README file in the tools testing directory?)

@@ -27,6 +27,24 @@ CMakeFiles/
# don't ignore cism build utilities directory
!components/cism/**/build

# configure / build files
Copy link
Member

Choose a reason for hiding this comment

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

I assume that all of these new entries are referring to files that appear in specific places in the directory tree? If so, the rules should be more specific, listing the exact paths where these files occur.

Also: I started doing this by having multiple .gitignore files in different places. However, I was just doing some googling, and it sounds like the most common convention is to put everything in this top-level .gitignore file. So I'd like to rework things to do that. So, for example, this entry in src/unit_test_stubs/utils/.gitignore: restUtilMod_stub.F90 would go in the top-level as /src/unit_test_stubs/utils/restUtilMod_stub.F90 (I think it's correct to have this leading slash here: I think this says to match exactly this path). I can do this myself in a following PR if you don't want to deal with it.

@@ -34,7 +34,8 @@

#-----------------------------------------------------------------------------------------------
# Add $cfgdir to the list of paths that Perl searches for modules
my @dirs = ( $cfgdir, "$cfgdir/../../../cime/utils/perl5lib" );
my @dirs = ( $cfgdir, "$cfgdir/../../../cime/utils/perl5lib",
Copy link
Member

Choose a reason for hiding this comment

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

Is this going to first look in $cfgdir/../../../cime/utils/perl5lib, then look in $cfgdir/../cime/utils/perl5lib? If so, I'd change the order of these. My rationale is: If you're within a standalone checkout, there's a chance that there would be an unrelated cime directory at $cfgdir/../../../cime/utils/perl5lib.

@@ -28,6 +28,7 @@
#-----------------------------------------------------------------------------------------------
# Add $scrdir to the list of paths that Perl searches for modules
my @dirs = ( $scrdir, "$scrdir/../../../../cime/utils/perl5lib",
"$scrdir/../../cime/utils/perl5lib"
Copy link
Member

Choose a reason for hiding this comment

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

As above, I'd change the order of these search paths.

…checking, and make some of the gitignore specific to directories, add a few more required path changes
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.

Looks good now - thanks!

@ekluzek ekluzek merged commit 50ed42c into ESCOMP:master Feb 2, 2018
@ekluzek ekluzek deleted the wrkingtools branch February 2, 2018 17:02
chrislxj pushed a commit to chrislxj/ctsm that referenced this pull request Apr 2, 2018
Get tools and their testing working as well as build-namelist testing
samsrabin pushed a commit to samsrabin/CTSM that referenced this pull request May 3, 2024
Update stream definitions for new coupler history file format

### Description of changes

Modify stream_definition_datm.xml to generate a streams file (datm.streams.xml) with the new coupler history file format.

### Specific notes

Changes to accommodate new coupler history file names.
Change offset for solar stream from 2700 to -900 to accommodate changes due to time stamps.
These changes work in conjunction with CDEPS PR ESCOMP#224 and CDEPS PR ESCOMP#222 .
Note that I did not change the file names for ndep, or remove that stream. See ESCOMP/CDEPS#230

Contributors other than yourself, if any: @billsacks 

CDEPS Issues Fixed (include github issue #):  N/A

Are there dependencies on other component PRs (if so list):  No

Are changes expected to change answers (bfb, different to roundoff, more substantial):  Yes, in coupler history mode.

Any User Interface Changes (namelist or namelist defaults changes): No

Testing performed (e.g. aux_cdeps, CESM prealpha, etc):  I have conducted a pair of cases, an F-case to generate coupler history files, and an I-case to read those files, using the new file name convention, and compared the forcing output variables from clm history files between the two cases.  @billsacks and I reviewed these differences and found them to be acceptable.

@billsacks ran SMS_D_Ld1.ne30pg3_t061.I1850Clm50BgcSpinup.cheyenne_intel.clm-cplhist in the context of ESCOMP#1999

Hashes used for testing:  N/A
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.

2 participants