[Dart-dev] [6035] DART/branches/development/models/CESM/model_mod.f90: fix some lingering problems; it compiles now.

nancy at ucar.edu nancy at ucar.edu
Tue Apr 2 16:34:36 MDT 2013


Revision: 6035
Author:   nancy
Date:     2013-04-02 16:34:35 -0600 (Tue, 02 Apr 2013)
Log Message:
-----------
fix some lingering problems; it compiles now.

Modified Paths:
--------------
    DART/branches/development/models/CESM/model_mod.f90

-------------- next part --------------
Modified: DART/branches/development/models/CESM/model_mod.f90
===================================================================
--- DART/branches/development/models/CESM/model_mod.f90	2013-04-02 22:33:12 UTC (rev 6034)
+++ DART/branches/development/models/CESM/model_mod.f90	2013-04-02 22:34:35 UTC (rev 6035)
@@ -21,7 +21,8 @@
                              operator(/=), operator(<=)
 use     location_mod, only : location_type, get_dist, get_close_maxdist_init,  &
                              get_close_obs_init, set_location,                 &
-                             get_location, get_close_type
+                             get_location, loc_get_close_obs => get_close_obs, &
+                             get_close_type
 use    utilities_mod, only : register_module, error_handler,                   &
                              E_ERR, E_WARN, E_MSG, logfileunit, get_unit,      &
                              nc_check, do_output, to_upper,                    &
@@ -236,7 +237,7 @@
 
 real(r8) :: llon, llat, lvert, loc_array(3)
 integer  :: x_start, x_end
-character :: modelname(32)
+character(len=32) :: modelname
 
 if ( .not. module_initialized ) call static_init_model
 
@@ -315,12 +316,12 @@
 
 real(r8) :: lat, lon, vert
 integer  :: x_start, x_end
-character :: modelname(32)
+character(len=32) :: modelname
 
 ! figure out what offset in the state vector we are at, and then
 ! call the right sub-model
 
-call which_model_state(x_offset, modelname)
+call which_model_state(index_in, modelname)
 call set_start_end(modelname, x_start, x_end)
 
 if (modelname == 'CAM') then
@@ -549,7 +550,7 @@
 ! in the namelist with the variable "vert_localization_coord".
 
 integer :: t_ind, k
-character :: modelname(32)
+character(len=32) :: modelname
 
 ! Initialize variables to missing status
 num_close = 0
@@ -652,7 +653,7 @@
    case (XBT_TEMPERATURE)
       modelname = 'POP'
 
-   case (CARBON_LEAF)
+   case (LEAF_CARBON)
       modelname = 'CLM'
 
    case default
@@ -670,5 +671,3 @@
 end module model_mod
 
 
-end module
-


More information about the Dart-dev mailing list