<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[4037] DART/trunk/models/cam: CAM updates from Kevin:</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>4037</dd>
<dt>Author</dt> <dd>nancy</dd>
<dt>Date</dt> <dd>2009-09-04 14:32:40 -0600 (Fri, 04 Sep 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>CAM updates from Kevin:

advance_model.csh
   Added (CAM 3.6) ICE restart file handling.
   Adapted to changes in file &quot;casemodel&quot; for ICE.

run-cam.csh
   Added (CAM 3.6) ICE restart file handling.
   Adapted to changes in file &quot;casemodel&quot; for ICE.
   Added handling of CAM history file *.h0.*
   Added handling of ICE namelist via build-namelist.

job_mpi.csh
   Added (CAM 3.6) ICE restart file handling.
   Adapted to changes in file &quot;casemodel&quot; for ICE.
   Added handling of CAM history file *.h0.*
   Made finding namelistin more automatic.
   Accomodated 30 levels for CAM &gt; 3.6.0
   Added CLM ensemble averaging capability (clm_ens_avg)

auto_diag2ms_LSF.csh
   Added code to archive CAM history files (*.h0.*)
   Handles CLM ensemble averaged files.
   More robustly handles varying numbers of H## analyses directories.
   
auto_re2ms_LSF.csh
   Added code to handle ICE restarts.
   Made assembly of list of files to archive more compact.
   
analyses2initial.csh
   Replaced the snow/water field averaging by NCO (ncap2 script)
     with f90 program models/cam/clm_ens_avg.f90.
   Generalized the listing of the H## files to be processed.
   Generalized the program to handle eulerian or FV (staggered U,V_) CAM files.
   Added code to pick one ICE ensemble member to be the &quot;analysis&quot;.
   
models/cam/clm_ens_avg.f90
   New program to correctly average the snow and related water fields in an 
   ensemble of CLM initial files (both CLM3 and CLM3.6).  Each ensemble member
   can have a different number of snow layers, but the corresponding top layers
   live in different indices in the file.  So they must be realligned, then
   averaged, then the result put back in to the right index. 
   The resulting averaged snow layers may not be &quot;full&quot;, but CLM can handle that.
   Columns with miniscule amounts of snow have the snow quantities zeroed.  </pre>

<h3>Modified Paths</h3>
<ul>
  <li>DART/trunk/models/cam/full_experiment/analyses2initial.csh</li>
  <li>DART/trunk/models/cam/full_experiment/auto_diag2ms_LSF.csh</li>
  <li>DART/trunk/models/cam/full_experiment/auto_re2ms_LSF.csh</li>
  <li>DART/trunk/models/cam/full_experiment/job_mpi.csh</li>
  <li>DART/trunk/models/cam/shell_scripts/advance_model.csh</li>
  <li>DART/trunk/models/cam/shell_scripts/run-cam.csh</li>
</ul>

<h3>Added Paths</h3>
<ul>
  <li>DART/trunk/models/cam/clm_ens_avg.f90</li>
  <li>DART/trunk/models/cam/full_experiment/auto_ICs2ms.csh</li>
  <li>DART/trunk/models/cam/work/mkmf_clm_ens_avg</li>
  <li>DART/trunk/models/cam/work/path_names_clm_ens_avg</li>
</ul>


</div>
</body>
</html>