Skip to content

Commit

Permalink
Merge commit '5de7b7ebddba0806f0d5eb772b0e3810914e1104' into jgfouca/…
Browse files Browse the repository at this point in the history
…branch-for-to-acme-11-10-2017-pr

* commit '5de7b7ebddba0806f0d5eb772b0e3810914e1104': (156 commits)
  partial fix for issue 2048
  USER_REQUESTED_ vars should go in env_batch
  Use_existing needs to set FAIL states back to PEND
  encapsulate routine
  add create_test options to config for user tuned defaults
  Change ACME PIO roots to zero the right way
  If MAIL_TYPE has an underscore, then MAIL_USER should as well
  make config option consistant with cl
  Typo in if-elif construct
  allow create_test to have a different mail_type default
  Add test to make sure successful tests are not re-run by use-existing
  Add support for mail flags to create_test
  convert line to utf-8
  Update ChangeLog
  Big fix.
  Address github feedback
  allow undated history files to be archived
  Change paths to case2 rundir and exeroot
  Allow mail settings to be configured by a users's cime_config
  Improve email handling
  ...
  • Loading branch information
jgfouca committed Nov 10, 2017
2 parents 24795ed + 5de7b7e commit b361f38
Show file tree
Hide file tree
Showing 42 changed files with 1,029 additions and 482 deletions.
173 changes: 173 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,178 @@
======================================================================

Originator: Chris Fischer
Date: 11-08-2017
Tag: cime5.4.0-alpha.09
Answer Changes: None
Tests: IRT.T62_g17.C1850ECO.yellowstone_intel.pop-default
code_checker, seq by-hand and with re-run
Dependencies:

Brief Summary:
- Allow undated history files to be archived.
- Convert SEQ to use compare-two.

User interface changes:

PR summary: git log --oneline --first-parent [previous_tag]..master
ce40669 Merge pull request #2037 from jedwards4b/fix_for_undated_history_file_archiving
280e006 Merge pull request #2030 from ESMCI/jgfouca/seq_cmpr_two

Modified files: git diff --name-status [previous_tag]
M scripts/lib/CIME/SystemTests/seq.py
M scripts/lib/CIME/SystemTests/system_tests_common.py
M scripts/lib/CIME/case_st_archive.py

======================================================================

======================================================================

Originator: Chris Fischer
Date: 11-07-2017
Tag: cime5.4.0-alpha.08
Answer Changes: None
Tests: Hand test B1850
Dependencies:

Brief Summary:
- Handle case when cmdargs is not a list

User interface changes:

PR summary: git log --oneline --first-parent [previous_tag]..master
fc72203 Merge pull request #2032 from jedwards4b/cmdargs_fix

Modified files: git diff --name-status [previous_tag]
M scripts/lib/CIME/utils.py

======================================================================

======================================================================

Originator: Chris Fischer
Date: 11-06-2017
Tag: cime5.4.0-alpha.07
Answer Changes: None
Tests: scripts_regression_tests.pr
manual checks of mapping files generated with runoff_to_ocn tool and run of check_map.sh tool
Tested runoff_map tool with a source file
run_merge_mapping_files.sh
code_checker
tests with casename try+45
Dependencies:

Brief Summary:
- Improve interface to external scripts PRERUN_SCRIPT, POSTRUN_SCRIPT, DATA_ASSIMILATION_SCRIPT.
- Better error message for compsets.
- For runoff map: fix mask_b and frac_b in nearest neighbor map.
- If area units on source grid file are in sq deg, convert to sq radians.
- Handle the case where no points are mapped to marginal seas.
- Add function to rebuild dependencies.
- Make srt change backward compatible.
- Allow overrides in config batch.
- Fix machines option to srt and unitialzed var.
- Fix cprnc build on mac.
- Add NLCOMP warning if comparison fails and RUN phase is complete.
- Remove string formatting from code-path that checks python version.
- Bluewaters update.
- Fix for ACME MPAS builds.
- Add support for selecting different driver.
- Fix critical bug with py3 str handling.
- Only report mem and tput errors once.
- Fix slurm output fields.
- Fix critical problems found during ACME/ESMCI integration.
- Handle pattern match chars like + in casename.
- Add check for a batch system when testing user prerequisites.
- Fix batch prepend test.
- py3 fixes
- Fix COST_PES and TOTALPES for titan (aprun).
- Add support for arbitrary prerequisites to case.submit.
- Updates for NAS pleiades systems.

User interface changes:
- Add --clean-depends to case.build, this argument can take a component list and will
clean all components if one is not provided.
- Some additional output from nl comp code in some cases
- --driver added to create_newcase, new _V$driver testopt.


PR summary: git log --oneline --first-parent [previous_tag]..master
0027c84 Merge pull request #2005 from jedwards4b/external_process_interface
a84b875 Merge pull request #2027 from jedwards4b/better_errormsg_for_compsets
184d7de Merge pull request #2013 from billsacks/runoff_nn_fix_mask
28f74aa Merge pull request #2022 from billsacks/runoff_convert_sq_degrees
4793fd8 Merge pull request #2007 from billsacks/runoff_map_no_marginal_ocean
5e79775 Merge pull request #2026 from jedwards4b/clean_depends
2b79440 make srt change backward compatible
a5a6949 Merge pull request #2025 from jedwards4b/allow_overrides_in_config_batch
cd181bb Merge pull request #2023 from jedwards4b/fix_unitialized_var
2978605 Merge pull request #2021 from billsacks/fix_cprnc_make
2d39e61 Merge pull request #2016 from ESMCI/jgfouca/add_nl_comp_warning
32375b4 Merge pull request #2017 from ESMCI/jgfouca/fix_cime_for_old_python
f3493fa Merge pull request #2015 from jedwards4b/bluewaters_update1
33ddbe8 Merge pull request #2008 from ESMCI/jgfouca/fix_acme_mpas_builds
f99c174 Merge pull request #1988 from ESMCI/jgfouca/add_driver_selection_support
33597f4 Merge pull request #2003 from ESMCI/jgfouca/py3_str_unicode_confusion
9202dbb Merge pull request #1998 from ESMCI/jgfouca/only_report_memory_tput_errors_once
09b7b8e Merge pull request #2001 from ESMCI/jgfouca/fix_slurm_output_fields
e67caa2 Merge pull request #1999 from ESMCI/jgfouca/misc_fixes
abf1e91 Merge pull request #1997 from jedwards4b/handle_special_chars_in_casename
952c5fd Merge pull request #1996 from ESMCI/mfdeakin-sandia/case_submit_prereq/fix_test
ef08588 fix batch prepend test
4226f42 py3 fixes
e959bdc Merge pull request #1990 from ESMCI/jgfouca/titan_fixes_and_misc
5f7359b Merge pull request #1753 from ESMCI/mfdeakin-sandia/case_submit/prereq
b8190ea Merge pull request #1983 from ESMCI/jgfouca/merge_st_archive

Modified files: git diff --name-status [previous_tag]
M config/acme/config_files.xml
M config/acme/machines/Makefile
M config/acme/machines/config_batch.xml
M config/cesm/machines/Makefile
M config/cesm/machines/config_batch.xml
M config/cesm/machines/config_machines.xml
M config/xml_schemas/config_batch.xsd
M doc/source/users_guide/running-a-case.rst
M scripts/Tools/case.build
M scripts/Tools/case.submit
M scripts/create_newcase
M scripts/lib/CIME/SystemTests/dae.py
M scripts/lib/CIME/SystemTests/system_tests_common.py
M scripts/lib/CIME/SystemTests/system_tests_compare_two.py
M scripts/lib/CIME/XML/component.py
M scripts/lib/CIME/XML/entry_id.py
M scripts/lib/CIME/XML/env_batch.py
M scripts/lib/CIME/XML/env_mach_pes.py
M scripts/lib/CIME/XML/generic_xml.py
M scripts/lib/CIME/XML/machines.py
M scripts/lib/CIME/aprun.py
M scripts/lib/CIME/build.py
M scripts/lib/CIME/buildlib.py
M scripts/lib/CIME/case.py
M scripts/lib/CIME/case_cmpgen_namelists.py
M scripts/lib/CIME/case_run.py
M scripts/lib/CIME/case_setup.py
M scripts/lib/CIME/case_st_archive.py
M scripts/lib/CIME/case_submit.py
M scripts/lib/CIME/compare_namelists.py
M scripts/lib/CIME/get_timing.py
M scripts/lib/CIME/test_scheduler.py
M scripts/lib/CIME/utils.py
M scripts/query_config
M scripts/tests/scripts_regression_tests.py
M src/drivers/mct/cime_config/config_component.xml
M src/drivers/mct/main/prep_ocn_mod.F90
M tools/cprnc/Makefile
M tools/mapping/check_maps/src/ESMF_RegridWeightGenCheck.F90
M tools/mapping/gen_mapping_files/runoff_to_ocn/ncl/merge_mapping_files.ncl
M tools/mapping/gen_mapping_files/runoff_to_ocn/src/main.F90
M tools/mapping/gen_mapping_files/runoff_to_ocn/src/map_mod.F90


======================================================================

======================================================================

Originator: Chris Fischer
Date: 10-25-2017
Tag: cime5.4.0-alpha.06
Expand Down
33 changes: 33 additions & 0 deletions config/acme/machines/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,39 @@ $(COMPLIB): $(OBJS)
%.F90: %.F90.in
$(CIMEROOT)/src/externals/genf90/genf90.pl $< > $@

clean_dependsatm:
$(RM) -f $(EXEROOT)/atm/obj/Srcfiles

clean_dependscpl:
$(RM) -f $(EXEROOT)/cpl/obj/Srcfiles

clean_dependsocn:
$(RM) -f $(EXEROOT)/ocn/obj/Srcfiles

clean_dependswav:
$(RM) -f $(EXEROOT)/wav/obj/Srcfiles

clean_dependsglc:
$(RM) -f $(EXEROOT)/glc/obj/Srcfiles

clean_dependsice:
$(RM) -f $(EXEROOT)/ice/obj/Srcfiles

clean_dependsrof:
$(RM) -f $(EXEROOT)/rof/obj/Srcfiles

clean_dependsesp:
$(RM) -f $(EXEROOT)/esp/obj/Srcfiles

clean_dependslnd:
$(RM) -f $(LNDOBJDIR)/Srcfiles

clean_dependscsmshare:
$(RM) -f $(SHAREDLIBROOT)/$(SHAREDPATH)/$(COMP_INTERFACE)/$(ESMFDIR)/$(NINST_VALUE)/csm_share/Srcfiles

clean_depends: clean_dependsatm clean_dependscpl clean_dependswav clean_dependsglc clean_dependsice clean_dependsrof clean_dependslnd clean_dependscsmshare clean_dependsesp


cleanatm:
$(RM) -f $(LIBROOT)/libatm.a
$(RM) -fr $(EXEROOT)/atm/obj
Expand Down
52 changes: 26 additions & 26 deletions config/acme/machines/config_batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,33 +161,33 @@
</batch_system>

<!-- for lawrence livermore computing -->
<batch_system type="lc_slurm">
<batch_submit>sbatch</batch_submit>
<batch_cancel>scancel</batch_cancel>
<batch_directive>#SBATCH</batch_directive>
<jobid_pattern>(\d+)$</jobid_pattern>
<depend_string> -l depend=jobid</depend_string>
<depend_separator>:</depend_separator>
<walltime_format>%H:%M:%S</walltime_format>
<batch_mail_flag>--mail-user</batch_mail_flag>
<batch_mail_type_flag>--mail-type</batch_mail_type_flag>
<batch_mail_type>none, all, begin, end, fail</batch_mail_type>
<directives>
<directive>--export=ALL</directive>
<directive>-p {{ job_queue }}</directive>
<directive>-J {{ job_id }}</directive>
<directive>-N {{ num_nodes }}</directive>
<directive>-n {{ total_tasks }}</directive>
<directive>-t {{ job_wallclock_time }}</directive>
<directive>-o {{ job_id }}.out</directive>
<directive>-e {{ job_id }}.err</directive>
<directive>--mail-type=all</directive>
<batch_system type="lc_slurm">
<batch_submit>sbatch</batch_submit>
<batch_cancel>scancel</batch_cancel>
<batch_directive>#SBATCH</batch_directive>
<jobid_pattern>(\d+)$</jobid_pattern>
<depend_string> -l depend=jobid</depend_string>
<depend_separator>:</depend_separator>
<walltime_format>%H:%M:%S</walltime_format>
<batch_mail_flag>--mail-user</batch_mail_flag>
<batch_mail_type_flag>--mail-type</batch_mail_type_flag>
<batch_mail_type>none, all, begin, end, fail</batch_mail_type>
<directives>
<directive>--export=ALL</directive>
<directive>-p {{ job_queue }}</directive>
<directive>-J {{ job_id }}</directive>
<directive>-N {{ num_nodes }}</directive>
<directive>-n {{ total_tasks }}</directive>
<directive>-t {{ job_wallclock_time }}</directive>
<directive>-o {{ job_id }}.out</directive>
<directive>-e {{ job_id }}.err</directive>
<directive>--mail-type=all</directive>
<directive> -A {{ project }} </directive>
</directives>
<queues>
<queue walltimemax="01:00:00" nodemin="1" nodemax="270" default="true">pbatch</queue>
</queues>
</batch_system>
</directives>
<queues>
<queue walltimemax="01:00:00" nodemin="1" nodemax="270" default="true">pbatch</queue>
</queues>
</batch_system>
<!-- for lawrence livermore computing -->

<batch_system type="slurm" >
Expand Down
4 changes: 1 addition & 3 deletions config/acme/machines/config_pio.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@
</values>
</entry>

<!--- uncomment and fill in relevant sections
<entry id="PIO_ROOT">
<values>
<value></value>
<value>0</value>
</values>
</entry>
-->

<!--- uncomment and fill in relevant sections
<entry id="PIO_NUMTASKS">
Expand Down
33 changes: 33 additions & 0 deletions config/cesm/machines/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,39 @@ endif
%.F90: %.F90.in
$(CIMEROOT)/src/externals/genf90/genf90.pl $< > $@

clean_dependsatm:
$(RM) -f $(EXEROOT)/atm/obj/Srcfiles

clean_dependscpl:
$(RM) -f $(EXEROOT)/cpl/obj/Srcfiles

clean_dependsocn:
$(RM) -f $(EXEROOT)/ocn/obj/Srcfiles

clean_dependswav:
$(RM) -f $(EXEROOT)/wav/obj/Srcfiles

clean_dependsglc:
$(RM) -f $(EXEROOT)/glc/obj/Srcfiles

clean_dependsice:
$(RM) -f $(EXEROOT)/ice/obj/Srcfiles

clean_dependsrof:
$(RM) -f $(EXEROOT)/rof/obj/Srcfiles

clean_dependsesp:
$(RM) -f $(EXEROOT)/esp/obj/Srcfiles

clean_dependslnd:
$(RM) -f $(LNDOBJDIR)/Srcfiles

clean_dependscsmshare:
$(RM) -f $(SHAREDLIBROOT)/$(SHAREDPATH)/$(COMP_INTERFACE)/$(ESMFDIR)/$(NINST_VALUE)/csm_share/Srcfiles

clean_depends: clean_dependsatm clean_dependscpl clean_dependswav clean_dependsglc clean_dependsice clean_dependsrof clean_dependslnd clean_dependscsmshare clean_dependsesp


cleanatm:
$(RM) -f $(LIBROOT)/libatm.a
$(RM) -fr $(EXEROOT)/atm/obj
Expand Down
10 changes: 8 additions & 2 deletions config/cesm/machines/config_batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
queues across machines. The batch_system tag denotes the name for a particular
batch system, these can either be shared between one or more machines, or can be
defined for a specific machine if need be.
Machine specific entries take precidence over generic entries, directives are appended
queues:
one or more queues can be defined per batch_system. if the attribute default="true"
is used, then that queue will be used by default. Alternatively, multiple queues can
Expand Down Expand Up @@ -99,6 +102,7 @@
<batch_directive>#BSUB</batch_directive>
<jobid_pattern>&lt;(\d+)&gt;</jobid_pattern>
<depend_string> -w 'done(jobid)'</depend_string>
<depend_separator>&amp;&amp;</depend_separator>
<walltime_format>%H:%M</walltime_format>
<batch_mail_flag>-u</batch_mail_flag>
<batch_mail_type_flag></batch_mail_type_flag>
Expand Down Expand Up @@ -127,6 +131,7 @@
<batch_directive>#PBS</batch_directive>
<jobid_pattern>^(\S+)$</jobid_pattern>
<depend_string> -W depend=afterok:jobid</depend_string>
<depend_separator>:</depend_separator>
<walltime_format>%H:%M:%S</walltime_format>
<batch_mail_flag>-M</batch_mail_flag>
<batch_mail_type_flag>-m</batch_mail_type_flag>
Expand Down Expand Up @@ -195,13 +200,14 @@

<!-- bluewaters is PBS -->
<batch_system MACH="bluewaters" type="pbs" >
<jobid_pattern>(\d+.bw)$</jobid_pattern>
<directives>
<directive>-l nodes={{ num_nodes }}:ppn={{ tasks_per_node }}:xe</directive>
<directive default="/bin/bash" > -S {{ shell }} </directive>
</directives>
<queues>
<queue walltimemax="24:00:00" default="true">regular</queue>
<queue walltimemax="00:30:00" nodemin="1" nodemax="16">debug</queue>
<queue walltimemax="24:00:00">normal</queue>
<queue walltimemax="00:30:00" nodemin="1" nodemax="16" default="true">debug</queue>
</queues>
</batch_system>

Expand Down
Loading

0 comments on commit b361f38

Please sign in to comment.