===============================================================
Tag name:  mosart1_0_24
Originator(s): erik
Date: Jun 01, 2017
One-line Summary: Update routing file with metadata and in NetCDF3 format

Update routing file with extra metadata and in NetCDF3 format rather than
NetCDF4.

Testing:

Modified files: 

M       cime_config/namelist_definition_mosart.xml

===============================================================
Tag name:  mosart1_0_23
Originator(s): andre
Date: March 17, 2017
One-line Summary: answer changing improvements and bugfix

Answer changing improvements to channel storage from HongYi Li for
faster spinup. Bugfix from Tony Craig to use correct delta time for
qgwl flux.

Changes reviewed by Sean Swenson.

Testing:

    Test suite: mosart - yellowstone gnu, intel, pgi
    Test baseline mosart1_0_22_clm4_5_14_r229
    Test status: pass, answer changing as expected when mosart on

    Test suite: aux_clm4{0,5} - yellowstone gnu, intel, pgi
    Test baseline: clm4_5_14_r229
    Test status: ok - only expected failures. Bit for bit except for
                 tests with mosart as expected.

    Dave Lawrence and Sean Swenson ran branch in a long cesm2 coupled
    simulation and verified the results were ok.

Modified files: 

    components/mosart/src/riverroute/RtmMod.F90


===============================================================
Tag name:  mosart1_0_22
Originator(s): andre
Date: March 17, 2017
One-line Summary: histfile pointer bugfix bugz-2184

Bugfix from bugzilla issue 2184. The histfile infrastructure mosart
inherited from clm via rtm needs to use pointers to refer to
pio/netcdf file handles. Bug 2184 has never occured in mosart, but the
same problem existed.

Testing:

    NOTE: testing done with a franken-branch of clm4_5_14_r229 and
    mosart1_0_21.

    mosart - pass - yellowstone gnu, intel, pgi. baseline mosart1_0_21_clm4_5_14_r229.

    aux_clm4{0,5}: ok vs clm4_5_14_r229 baselines yellowstone gnu, intel, pgi
        Only clm expected fails


Modified files: fix for bugzilla #2184

    components/mosart/src/riverroute/RtmHistFile.F90


===============================================================
Tag name:  mosart1_0_21
Originator(s): mvertens, andre
Date: March 14, 2017
One-line Summary: cime5 python namelist generation

Changes from Mariana Vertenstein to convert namelist generation to use
the cime5 python namelist infrastructure.

Testing:

  aux_clm45 vs clm4_5_14_r227 - passed except for expected failures.

  mosart vs clm4_5_14_r227 generated baselines - pass

  mvertens
    ERI_Ld9.f10_f10.IMCRUCLM50BGC.yellowstone_intel.clm-default
    ERS_Ld7.f19_g16.B1850.yellowstone_intel.allactive-defaultio -
        was bfb with cesm2_0_alpha06f

Deleted files: perl based namelist generation and xml files.
   bld
   bld/build-namelist
   bld/namelist_files
   bld/namelist_files/namelist_defaults_mosart.xml
   bld/namelist_files/namelist_definition_mosart.xml

Added files: python based namelist generation and xml files
   cime_config/buildlib
   cime_config/buildnml
   cime_config/config_component.xml
   cime_config/namelist_definition_mosart.xml

===============================================================
Tag name:  mosart1_0_20
Originator(s): erik
Date: Feb 21 2017
One-line Summary: Fix an issue with nag, lower amount of log output

Fix bugs: 2393, 3424

Add some if(masterproc) for write statements, change some writes to aborts, bug 2393
Fix bug for nag compiler on hobart moving global save after mpif bug 2424


M       src/riverroute/RtmMod.F90 ---- Add if(masterproc)
M       src/riverroute/MOSART_physics_mod.F90 ---- Remove print statements before abort
M       src/riverroute/RtmSpmd.F90 -- Move the global save until after the mpif.h include
           so it can work on the nag compiler on hobart.
M       src/riverroute/RtmIO.F90 ---- Add if(masterproc)

===============================================================
Tag name:  mosart1_0_19
Originator(s): swenson, sacks
Date: Oct 17 2016
One-line Summary: Treat irrigation specially, fix volr

(1) Together with corresponding cime and clm changes, treats irrigation as a
    separate flux. The point of this is to map irrigation withdrawals normalized
    by volr, to help prevent river channels from going to negative volumes.

(2) Fixes the volr field sent to the coupler

Requires the cime changes from https://github.com/ESMCI/cime/pull/681

In order for the new irrigation changes to have an effect, also requires the CLM
changes from the branch
https://svn-ccsm-models.cgd.ucar.edu/clm2/branches/limitirrig - although this
code will work correctly without the CLM changes (in this case, irrigation will
simply be 0, and the irrigation flux will be folded in to a different runoff
flux).

Changes are from Sean Swenson; reviewed, tested and brought to the trunk by Bill
Sacks.

Testing: mosart test suite (on yellowstone), from
https://svn-ccsm-models.cgd.ucar.edu/clm2/branch_tags/limitirrig_tags/limitirrig_n10_clm4_5_12_r196

All tests passed, but with answer changes in r2x_Flrr_volr and x2l_Flrr_volr, as
expected.

Also ran aux_clm45 test suite; most tests passed; I'm looking into remaining
failures and will update mosart if it turns out it was the source of any
problems.

M       src/riverroute/RunoffMod.F90
M       src/riverroute/RtmMod.F90
M       src/riverroute/RtmHistFlds.F90
M       src/cpl/rof_comp_mct.F90
M       src/cpl/rof_cpl_indices.F90

===============================================================
Tag name:  mosart1_0_18
Originator(s): erik
Date: Sep 13 2016
One-line Summary: Add output frequency to history files


M   src/riverroute/RtmHistFile.Fi90 -- add output history frequency "time_period_freq"

===============================================================
Tag name:  mosart1_0_17
Originator(s): erik
Date: Apr 14 2016
One-line Summary: Turn off for CLM_ACCELERATED_SPINUP="on" and fix a few bugs

Have MOSART react to CLM_ACCELERATED_SPINUP setting from CLM and turn itself off
by default if it's "on".

Also fix following bugs:

2307 -- assumes history files are no_leap calendar
2299 -- missing timer call
2230 -- for MOSART delt_save not initialized

M       bld/build-namelist ---- Check CLM_ACCELERATED_SPINUP, read do_rtm from
           defaults file and check based on CLM_ACCELERATED_SPINUP and MOSART_MODE
M       bld/namelist_files/namelist_defaults_mosart.xml - add do_rtm settings
M       src/riverroute/RtmRestFile.F90 -- Increase string length to 255
M       src/riverroute/RtmMod.F90 ------- Increase string length to 255
M       src/riverroute/RtmHistFile.F90 -- Increase filename length to 255
           check calendar type before writing to history file
M       src/riverroute/RtmIO.F90 -------- Remove commented out lines, add timer call (2299), 
           initialize delt_save (2230)
M       src/riverroute/RtmTimeManager.F90 Add NO_LEAP_C and GREGORIAN_C as public constants (2307)

===============================================================
Tag name:  mosart1_0_16
Originator(s): swenson
Date: Feb 8 2016
One-line Summary: bugfix for budget diagnostic output

  bugfix: budget diagnostic output


M       src/riverroute/RtmMod.F90

===============================================================
Tag name:  mosart1_0_14
Originator(s): swenson
Date: Dec 22 2015
One-line Summary: bugfix for negative river runoff

  Note(bja, 20151223) this was made directly as a trunk tag, but not put on the trunk.

  bugfix: minimum channel length

M       src/riverroute/RtmMod.F90

===============================================================
Tag name:  mosart1_0_13
Originator(s): swenson, andre
Date: Dec 21 2015
One-line Summary: bugfix for negative river runoff

  bugfix: calculation of qgwl_volume must be multiplied by area.

M       src/riverroute/RtmMod.F90

===============================================================
Tag name:  mosart1_0_12
Originator(s): swenson, andre
Date: Dec 18 2015
One-line Summary: negative river runoff changes

- Update default routing file.
- Add new namelist options bypass_routing_option,
  qgwl_runoff_option
- New method of handeling runoff terms to avoid negative runoff.
- Error checking on max length of history filenames.
- Add testdefs dir, testmods and testlist for integration to cime
  test system.
- remove rofdto from coupler interface fields.

M       bld/build-namelist
M       bld/namelist_files/namelist_defaults_mosart.xml
M       bld/namelist_files/namelist_definition_mosart.xml
A  +    cime_config/testdefs
A  +    cime_config/testdefs/testlist_mosart.xml
A  +    cime_config/testdefs/testmods_dirs
A  +    cime_config/testdefs/testmods_dirs/mosart
A  +    cime_config/testdefs/testmods_dirs/mosart/mosartOff
A  +    cime_config/testdefs/testmods_dirs/mosart/mosartOff/include_user_mods
A  +    cime_config/testdefs/testmods_dirs/mosart/mosartOff/user_nl_mosart
A  +    cime_config/testdefs/testmods_dirs/mosart/default
A  +    cime_config/testdefs/testmods_dirs/mosart/default/user_nl_mosart
A  +    cime_config/testdefs/testmods_dirs/mosart/iceOff
A  +    cime_config/testdefs/testmods_dirs/mosart/iceOff/include_user_mods
A  +    cime_config/testdefs/testmods_dirs/mosart/iceOff/user_nl_mosart
M       doc/ChangeLog
M       src/riverroute/RtmMod.F90
M       src/riverroute/RtmHistFlds.F90
M       src/riverroute/MOSART_physics_mod.F90
M       src/riverroute/RtmHistFile.F90
M       src/riverroute/RtmVar.F90
M       src/riverroute/RunoffMod.F90
M       src/cpl/rof_comp_mct.F90
M       src/cpl/rof_comp_esmf.F90

===============================================================
Tag name:  mosart1_0_11
Originator(s): katec
Date: Dec 7 2015
One-line Summary: Changes to get Mosart to build with Nag on Hobart

- Shortened a few lines of code that were too long
- Added '.' for some literals that Nag thought were integers
- Removed call to 'system' and used open status='replace' instead

M       src/riverroute/MOSART_physics_mod.F90
M       src/riverroute/RtmMod.F90

===============================================================
Tag name:  mosart1_0_10
Originator(s): tcraig
Date: Dec 2 2015
One-line Summary: New input file, update direct terms, update history file

- switch to input dataset MOSART_Global_half_20151130a.nc
- update direct sparse matrix to include non basin points in order
  to pass data from any grid cell directly to the ocean.
- modify the direct term and push all direct water to outlet points
- set all tracer 2 water (frozen water) to be a direct term
- add ability to skip some tracers in the euler solver via euler_calc flag
- add a budget accumulator term
- update history file fields and fieldnames, add new history fields
- compare total upstream basin areas from the input area field, use the
  computed total areas instead of the input total areas

M       bld/namelist_files/namelist_defaults_mosart.xml
M       src/riverroute/RtmMod.F90
M       src/riverroute/RtmHistFlds.F90
M       src/riverroute/MOSART_physics_mod.F90
M       src/riverroute/RtmHistFile.F90
M       src/riverroute/RunoffMod.F90

===============================================================
Tag name:  mosart1_0_09
Originator(s): tcraig
Date: Nov 29 2015
One-line Summary: Code cleanup, add budget diagnostics, history files

M       src/riverroute/RtmMod.F90
M       src/riverroute/RtmHistFlds.F90
M       src/riverroute/MOSART_physics_mod.F90
M       src/riverroute/RtmHistFile.F90
M       src/riverroute/RunoffMod.F90
M       src/riverroute/RtmRestFile.F90
M       src/cpl/rof_cpl_indices.F90
M       src/cpl/rof_comp_mct.F90
M       src/cpl/rof_comp_esmf.F90
===============================================================
Tag name:  mosart1_0_08
Originator(s): tcraig
Date: Nov 24 2015
One-line Summary: Fix exact restart in atan slope calc

M       src/riverroute/MOSART_physics_mod.F90

===============================================================
Tag name:  mosart1_0_07
Originator(s): tcraig
Date: Nov 22 2015
One-line Summary: update rtmini and rtmrun routine and add budget
- code cleanup of rtmini and rtmrun
- works with mosart input files with scrambled IDs
- moved dto term into rtmrun
- added direct-to-outlet tranfer capability
- removed a bunch of old rtm code
- fixed esmf interfaces and tested in DEBUG mode
- added budget calculation (still being validated)
- has a known exact restart error that introduces a roundoff
  difference at the first timestep at a handful of gridcells.
  This is probably not going to impact science, will be fixed
  next.

M       src/riverroute/RtmMod.F90
M       src/riverroute/MOSART_physics_mod.F90
M       src/riverroute/RunoffMod.F90
M       src/riverroute/RtmRestFile.F90
M       src/cpl/rof_comp_mct.F90
M       src/cpl/rof_comp_esmf.F90
===============================================================
Tag name:  mosart1_0_06
Originator(s): tcraig
Date: Nov 19 2015
One-line Summary: merge ACME fixes to decomp and performance

This works with MOSART_Global_half_20130604a.nc, NOT
MOSART_Global_half_20151015a.nc.  This will be fixed in the next
commit.  Probably shouldn't use this tag for now.

Not bit for big with previous tag.

M       bld/build-namelist
M       bld/namelist_files/namelist_defaults_mosart.xml
M       bld/namelist_files/namelist_definition_mosart.xml
M       src/riverroute/RtmMod.F90
M       src/riverroute/MOSART_physics_mod.F90
M       src/riverroute/RtmSpmd.F90
M       src/riverroute/RtmVar.F90
M       src/riverroute/RunoffMod.F90

===============================================================
Tag name:  mosart1_0_05
Originator(s): andre
Date: Oct 15 2015
One-line Summary: swenson bugfix for mosart direction file

The old mosart direction file, rof/mosart/MOSART_Global_half_20130604a.nc,
has antarctica shifted by 180 degrees.

Tested with pre-clm4_5_3_r140:
  ERS_D_Ld5.f10_f10.IMCRUCLM50BGC.yellowstone_intel - runs to completion

Not bit for bit with previous tag.

===============================================================
Tag name:  mosart1_0_04
Originator(s): andre
Date: Oct 15 2015
One-line Summary: swenson river volume normalization bugfix

Tested by Sean Swenson. Verified to compile and run SMS_D.f10_f10.IMCRUCLM50BGC.yellowstone_intel.clm-default.

Not bit for bit with previous tag.

===============================================================
Tag name:  mosart1_0_03
Originator(s): andre
Date: Oct 13, 2015
One-line Summary: update mosart

Updates to mosart:

* cime compatible infrastructure from Mariana Vertenstein

* Add direct to ocean runoff flux from Sean Swenson.

* PIO2 updates from Jim Edwards

Tested against version of clm4_5_3_r135

  ERS_D_Ld5.f10_f10.IMCRUCLM50BGC.yellowstone_intel.clm-default
  SMS_D_Ld3.f10_f10.IMCRUCLM50BGC.yellowstone_intel.clm-default


Not expected to be bit for bit with previous tag.

M       bld/build-namelist
D       bld/mosart.buildlib
D       bld/mosart.buildnml
D       bld/user_nl_mosart
A  +    cime_config
A  +    cime_config/buildlib
A  +    cime_config/buildnml
A  +    cime_config/config_component.xml
A  +    cime_config/user_nl_mosart
M       src/riverroute/RtmMod.F90
M       src/riverroute/RtmHistFlds.F90
M       src/riverroute/RtmIO.F90
M       src/riverroute/RunoffMod.F90
M       src/cpl/rof_cpl_indices.F90
M       src/cpl/rof_comp_mct.F90
M       src/cpl/rof_comp_esmf.F90

===============================================================
Tag name:  mosart1_0_00
Originator(s): tcraig
Date: May 1, 2015
One-line Summary: add mosart to CESM repository

This is based on the following version from PNL but has been updated
to fit into cesm1_4.

URL: https://svn.pnl.gov/svn/iRESM/cesm1/trunk/models/rof/mosart
Repository Root: https://svn.pnl.gov/svn/iRESM
Repository UUID: 97a048bb-0f8f-0410-8848-820bd1cc90bf
Revision: 1311
Node Kind: directory
Schedule: normal
Last Changed Author: tcraig
Last Changed Rev: 1310
Last Changed Date: 2014-10-03 10:38:55 -0600 (Fri, 03 Oct 2014)

A       bld
A       bld/build-namelist
A       bld/mosart.buildlib
A       bld/mosart.buildnml
A       bld/user_nl_mosart
A       bld/namelist_files
A       bld/namelist_files/namelist_defaults_mosart.xml
A       bld/namelist_files/namelist_definition_mosart.xml
A       doc
A       doc/ChangeLog
A       src
A       src/riverroute
A       src/riverroute/RtmMod.F90
A       src/riverroute/RtmFileUtils.F90
A       src/riverroute/RtmHistFlds.F90
A       src/riverroute/MOSART_physics_mod.F90
A       src/riverroute/RtmSpmd.F90
A       src/riverroute/RtmHistFile.F90
A       src/riverroute/RtmIO.F90
A       src/riverroute/RtmVar.F90
A       src/riverroute/RtmTimeManager.F90
A       src/riverroute/RtmDateTime.F90
A       src/riverroute/RunoffMod.F90
A       src/riverroute/RtmRestFile.F90
A       src/cpl
A       src/cpl/rof_cpl_indices.F90
A       src/cpl/rof_comp_mct.F90
A       src/cpl/rof_comp_esmf.F90

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