[Dart-dev] [4284] DART/trunk/models/wrf: Added some warning lines; the adv_mod_command namelist item has

nancy at ucar.edu nancy at ucar.edu
Wed Feb 17 09:32:05 MST 2010


Revision: 4284
Author:   nancy
Date:     2010-02-17 09:32:05 -0700 (Wed, 17 Feb 2010)
Log Message:
-----------
Added some warning lines; the adv_mod_command namelist item has
moved from the wrf &model_mod to the &dart_to_wrf_nml namelist.
For now, it won't be an error to have it in the &model_mod
namelist, but it will be ignored.  Soon it will be removed
and then it will be an error to set it there.

Modified Paths:
--------------
    DART/trunk/models/wrf/WRF_DART_utilities/dart_to_wrf.html
    DART/trunk/models/wrf/model_mod.f90
    DART/trunk/models/wrf/model_mod.html

-------------- next part --------------
Modified: DART/trunk/models/wrf/WRF_DART_utilities/dart_to_wrf.html
===================================================================
--- DART/trunk/models/wrf/WRF_DART_utilities/dart_to_wrf.html	2010-02-16 22:51:57 UTC (rev 4283)
+++ DART/trunk/models/wrf/WRF_DART_utilities/dart_to_wrf.html	2010-02-17 16:32:05 UTC (rev 4284)
@@ -114,7 +114,8 @@
      so the model_advance.csh script can function correctly. 
      This information along with some time information is written
      to a file called 'wrf.info' if this is a model advance file.
-     Default './wrf.exe'. </TD></TR>
+     Default './wrf.exe'. This value used to be set in the
+     wrf &amp;model_mod namelist, but has moved to here.</TD></TR>
 </TABLE>
 
 

Modified: DART/trunk/models/wrf/model_mod.f90
===================================================================
--- DART/trunk/models/wrf/model_mod.f90	2010-02-16 22:51:57 UTC (rev 4283)
+++ DART/trunk/models/wrf/model_mod.f90	2010-02-17 16:32:05 UTC (rev 4284)
@@ -173,7 +173,8 @@
 ! Max height a surface obs can be away from the actual model surface
 ! and still be accepted (in meters)
 real (kind=r8) :: sfc_elev_max_diff  = -1.0_r8   ! could be something like 200.0_r8
-character(len = 72) :: adv_mod_command = './wrf.exe'
+! adv_mod_command moved to dart_to_wrf namelist; ignored here.
+character(len = 72) :: adv_mod_command = ''
 real (kind=r8) :: center_search_half_length = 500000.0_r8
 real(r8) :: circulation_pres_level = 80000.0_r8
 real(r8) :: circulation_radius     = 108000.0_r8
@@ -323,6 +324,16 @@
 if (do_nml_file()) write(nmlfileunit, nml=model_nml)
 if (do_nml_term()) write(     *     , nml=model_nml)
 
+! Temporary warning until this namelist item is removed.
+if (adv_mod_command /= '') then
+   call error_handler(E_MSG, 'static_init_model:', "WARNING")
+   call error_handler(E_MSG, 'static_init_model:', &
+                      "WARNING: adv_mod_command ignored in &model_mod namelist")
+   call error_handler(E_MSG, 'static_init_model:', &
+                      "WARNING: Set the model advance command in &dart_to_wrf_nml")
+   call error_handler(E_MSG, 'static_init_model:', "WARNING")
+endif
+
 allocate(wrf%dom(num_domains))
 
 ! get default state variable table if asked

Modified: DART/trunk/models/wrf/model_mod.html
===================================================================
--- DART/trunk/models/wrf/model_mod.html	2010-02-16 22:51:57 UTC (rev 4283)
+++ DART/trunk/models/wrf/model_mod.html	2010-02-17 16:32:05 UTC (rev 4284)
@@ -673,15 +673,15 @@
 </P>
 <div class=namelist>
 <pre>
-<em class=call>namelist / model_nml / </em>                             &amp;
-   default_state_variables, wrf_state_variables, wrf_state_bounds,      &amp;
-   output_state_vector, num_domains, calendar_type,                     &amp;
-   adv_mod_command, assimilation_period_seconds, allow_obs_below_vol,   &amp;
-   vert_localization_coord, sfc_elev_max_diff,                          &amp;
-   polar, periodic_x, periodic_y, scm,                                  &amp;
-   center_search_half_length, center_spline_grid_scale,                 &amp;
-   circulation_pres_level, circulation_radius,                          &amp;
-   num_moist_vars, surf_obs, soil_data, h_diab
+<em class=call>namelist / model_nml / </em>                          &amp;
+   default_state_variables, wrf_state_variables, wrf_state_bounds,   &amp;
+   output_state_vector, num_domains, calendar_type,                  &amp;
+   assimilation_period_seconds, allow_obs_below_vol,                 &amp;
+   vert_localization_coord, sfc_elev_max_diff,                       &amp;
+   polar, periodic_x, periodic_y, scm,                               &amp;
+   center_search_half_length, center_spline_grid_scale,              &amp;
+   circulation_pres_level, circulation_radius,                       &amp;
+   adv_mod_command, num_moist_vars, surf_obs, soil_data, h_diab
 </pre>
 </div>
 
@@ -807,13 +807,6 @@
     negative, this test is skipped.  The default value is -1.0.
     The default is .false.</TD></TR>
 
-<TR><!--contents--><TD valign=top>adv_mod_command              </TD>
-    <!--  type  --><TD valign=top>character(len=32)            </TD>
-    <!--descript--><TD>For single-threaded, set to 'wrf.exe'. 
-	    For MPI, supports nesting, set to something like, for example, 
-	    'mpirun -np number-of-prcessors wrf.exe' (this depends on the
-	    platform). Defaults to 'wrf.exe'</TD></TR>
-
 <TR><!--contents--><TD valign=top>allow_obs_below_vol          </TD>
     <!--  type  --><TD valign=top>logical                      </TD>
     <!--descript--><TD>If an observation with a vertical coordinate of
@@ -830,7 +823,7 @@
     <!--descript--><TD>The model_mod now contains two schemes for
           searching for a vortex center location.  If the old scheme
           is compiled in, then this and the center_spline_grid_scale
-          namelist items are used.  
+          namelist items are used. (Search code for 'use_old_vortex'.)
           Half length (in meters) of a square box for searching 
           the vortex center.  Default is 500000.0</TD></TR>
     
@@ -839,7 +832,7 @@
     <!--descript--><TD>The model_mod now contains two schemes for
           searching for a vortex center location.  If the old scheme
           is compiled in, then this and the center_search_half_length
-          namelist items are used.  
+          namelist items are used.  (Search code for 'use_old_vortex'.)
           Ratio of refining grid for spline-interpolation in 
           determining the vortex center.  Default is 10</TD></TR>
     
@@ -848,18 +841,20 @@
     <!--descript--><TD>The model_mod now contains two schemes for
           searching for a vortex center location.  If the new scheme
           is compiled in, then this and the circulation_radius
-          namelist items are used.  
-          Pressure, in pascals, of xxx
-          for determining the vortex center.  Default is 80000.0</TD></TR>
+          namelist items are used.   (Search code for 'use_old_vortex'.)
+          Pressure, in pascals, of the level at which the circulation
+          is computed when searching for the vortex center.  
+          Default is 80000.0</TD></TR>
     
 <TR><!--contents--><TD valign=top>circulation_radius  </TD>
     <!--  type  --><TD valign=top>real(r8)                </TD>
     <!--descript--><TD>The model_mod now contains two schemes for
           searching for a vortex center location.  If the new scheme
           is compiled in, then this and the circulation_pres_level
-          namelist items are used.  
-          Distance, in meters, of xxx
-          for determining the vortex center.  Default is 108000.0</TD></TR>
+          namelist items are used.    (Search code for 'use_old_vortex'.)
+          Radius, in meters, of the circle over which the circulation
+          calculation is done when searching for the vortex center.
+          Default is 108000.0</TD></TR>
     
 <TR><!--contents--><TD valign=top>vert_localization_coord  </TD>
     <!--  type  --><TD valign=top>integer                   </TD>
@@ -887,6 +882,16 @@
     <!--descript--><TD>DEPRECATED -- has no effect on the code 
     and will be removed soon.</TD></TR>
 
+<TR><!--contents--><TD valign=top>adv_mod_command              </TD>
+    <!--  type  --><TD valign=top>character(len=32)            </TD>
+    <!--descript--><TD>DEPRECATED -- moved to the &amp;dart_to_wrf
+    namelist.  Currently has no effect on the code and will be 
+    removed soon. (Old description: For single-threaded, set to 'wrf.exe'. 
+    For MPI, supports nesting, set to something like, for example, 
+    'mpirun -np number-of-prcessors wrf.exe'.)  A variable with 
+    the same name is in the &amp;dart_to_wrf namelist and does 
+    this same function now.</TD></TR>
+
 </TABLE>
 
 </div>


More information about the Dart-dev mailing list