<p><b>dwj07@fsu.edu</b> 2012-12-03 13:21:26 -0700 (Mon, 03 Dec 2012)</p><p><br>
        -- BRANCH COMMIT --<br>
<br>
        Merging trunk with branch.<br>
</p><hr noshade><pre><font color="gray">Index: branches/ocean_projects/cesm_coupling
===================================================================
--- branches/ocean_projects/cesm_coupling        2012-12-03 20:19:40 UTC (rev 2335)
+++ branches/ocean_projects/cesm_coupling        2012-12-03 20:21:26 UTC (rev 2336)

Property changes on: branches/ocean_projects/cesm_coupling
___________________________________________________________________
Modified: svn:mergeinfo
## -6,8 +6,12 ##
 /branches/ocean_projects/gmvar:1214-1514,1517-1738
 /branches/ocean_projects/imp_vert_mix_error:1847-1887
 /branches/ocean_projects/imp_vert_mix_mrp:754-986
+/branches/ocean_projects/leith_mrp:2182-2241
 /branches/ocean_projects/monotonic_advection:1499-1640
 /branches/ocean_projects/monthly_forcing:1810-1867
+/branches/ocean_projects/option3_b4b_test:2201-2231
+/branches/ocean_projects/partial_bottom_cells:2172-2226
+/branches/ocean_projects/restart_reproducibility:2239-2272
 /branches/ocean_projects/split_explicit_mrp:1134-1138
 /branches/ocean_projects/split_explicit_timestepping:1044-1097
 /branches/ocean_projects/vert_adv_mrp:704-745
## -20,3 +24,4 ##
 /branches/omp_blocks/multiple_blocks:1803-2084
 /branches/source_renaming:1082-1113
 /branches/time_manager:924-962
+/trunk/mpas:2147-2335
\ No newline at end of property
Modified: branches/ocean_projects/cesm_coupling/Makefile
===================================================================
--- branches/ocean_projects/cesm_coupling/Makefile        2012-12-03 20:19:40 UTC (rev 2335)
+++ branches/ocean_projects/cesm_coupling/Makefile        2012-12-03 20:21:26 UTC (rev 2336)
@@ -231,8 +231,9 @@
         DEBUG_MESSAGE=&quot;Debug flags are not defined for this compile group. Defaulting to Optimized flags&quot;
 else # FFLAGS_DEBUG IF
         FFLAGS=$(FFLAGS_DEBUG)
-        CFLAGS=$(CFLAGS_DEBUG) -DMPAS_DEBUG
+        CFLAGS=$(CFLAGS_DEBUG)
         LDFLAGS=$(LDFLAGS_DEBUG)
+        override CPPFLAGS += -DMPAS_DEBUG
         DEBUG_MESSAGE=&quot;Debugging is on.&quot;
 endif # FFLAGS_DEBUG IF
 

Modified: branches/ocean_projects/cesm_coupling/namelist.input.ocean
===================================================================
--- branches/ocean_projects/cesm_coupling/namelist.input.ocean        2012-12-03 20:19:40 UTC (rev 2335)
+++ branches/ocean_projects/cesm_coupling/namelist.input.ocean        2012-12-03 20:21:26 UTC (rev 2336)
@@ -9,12 +9,13 @@
 /
 &amp;io
    config_input_name = 'grid.nc'
-   config_output_name = 'output..nc'
+   config_output_name = 'output.nc'
    config_restart_name = 'restart.nc'
    config_output_interval = '1_00:00:00'
    config_frames_per_outfile = 1000000
    config_pio_num_iotasks = 0
    config_pio_stride      = 1
+   config_write_output_on_startup = .true.
 /
 &amp;decomposition
    config_number_of_blocks = 0
@@ -31,6 +32,12 @@
    config_pressure_type = 'pressure'
    config_rho0 = 1014.65
 /
+&amp;partial_bottom_cells
+   config_alter_ICs_for_pbcs = 'off'
+   config_min_pbc_fraction = 0.10
+   config_check_ssh_consistency = .true.
+   config_check_zlevel_consistency = .false.
+/
 &amp;split_explicit_ts
    config_n_ts_iter  =  2 
    config_n_bcl_iter_beg =  1
@@ -55,6 +62,12 @@
    config_h_tracer_eddy_diff2 = 1.0e5
    config_h_tracer_eddy_diff4 = 0.0
 /
+&amp;hmix_leith
+   config_use_leith_del2 = .false.
+   config_leith_parameter = 1.0
+   config_leith_dx = 15000.0
+   config_leith_visc2_max = 2.5e3
+/
 &amp;vmix
    config_vert_visc_type  = 'const'
    config_vert_diff_type  = 'const'

Index: branches/ocean_projects/cesm_coupling/src
===================================================================
--- branches/ocean_projects/cesm_coupling/src        2012-12-03 20:19:40 UTC (rev 2335)
+++ branches/ocean_projects/cesm_coupling/src        2012-12-03 20:21:26 UTC (rev 2336)

Property changes on: branches/ocean_projects/cesm_coupling/src
___________________________________________________________________
Modified: svn:mergeinfo
## -20,4 +20,4 ##
 /branches/omp_blocks/multiple_blocks/src:1803-2084
 /branches/source_renaming/src:1082-1113
 /branches/time_manager/src:924-962
-/trunk/mpas/src:2147-2314
+/trunk/mpas/src:2147-2335
\ No newline at end of property
Modified: branches/ocean_projects/cesm_coupling/src/framework/mpas_io.F
===================================================================
--- branches/ocean_projects/cesm_coupling/src/framework/mpas_io.F        2012-12-03 20:19:40 UTC (rev 2335)
+++ branches/ocean_projects/cesm_coupling/src/framework/mpas_io.F        2012-12-03 20:21:26 UTC (rev 2336)
@@ -918,9 +918,12 @@
 
       type (fieldlist_type), pointer :: field_cursor
       integer :: pio_type
-      integer :: ndims, pd
-      integer :: i, i1, i2, i3, i4, i5, indx
-      integer, dimension(:), pointer :: dimlist, compdof
+      integer :: ndims
+      integer (kind=PIO_OFFSET) :: pd, indx
+      integer :: i 
+      integer (kind=PIO_OFFSET) :: i1, i2, i3, i4, i5
+      integer, dimension(:), pointer :: dimlist
+      integer (kind=PIO_OFFSET), dimension(:), pointer :: compdof
       type (decomplist_type), pointer :: decomp_cursor, new_decomp
 
 !      write(0,*) 'Called MPAS_io_set_var_indices()'
@@ -1056,11 +1059,11 @@
       do i=1,ndims-1
          dimlist(i) = field_cursor % fieldhandle % dims(i) % dimsize
          new_decomp % decomphandle % dims(i) = dimlist(i)
-         pd = pd * dimlist(i)
+         pd = pd * int(dimlist(i),PIO_OFFSET)
       end do
       new_decomp % decomphandle % dims(ndims) = field_cursor % fieldhandle % dims(ndims) % dimsize
       dimlist(ndims) = size(indices)
-      pd = pd * dimlist(ndims)
+      pd = pd * int(dimlist(ndims),PIO_OFFSET)
 
       allocate(compdof(pd)) 
 
@@ -1072,10 +1075,10 @@
          do i2=1,dimlist(2)
          do i1=1,dimlist(1)
             compdof(indx) = i1 &amp;
-                          + (i2-1)*dimlist(1) &amp;
-                          + (i3-1)*dimlist(2)*dimlist(1) &amp;
-                          + (i4-1)*dimlist(3)*dimlist(2)*dimlist(1) &amp;
-                          + (indices(i5)-1)*dimlist(4)*dimlist(3)*dimlist(2)*dimlist(1)
+                          + (i2-1)*int(dimlist(1),PIO_OFFSET) &amp;
+                          + (i3-1)*int(dimlist(2),PIO_OFFSET)*int(dimlist(1),PIO_OFFSET) &amp;
+                          + (i4-1)*int(dimlist(3),PIO_OFFSET)*int(dimlist(2),PIO_OFFSET)*int(dimlist(1),PIO_OFFSET) &amp;
+                          + int(indices(i5)-1,PIO_OFFSET)*int(dimlist(4),PIO_OFFSET)*int(dimlist(3),PIO_OFFSET)*int(dimlist(2),PIO_OFFSET)*int(dimlist(1),PIO_OFFSET)
             indx = indx + 1
          end do
          end do
@@ -1088,9 +1091,9 @@
          do i2=1,dimlist(2)
          do i1=1,dimlist(1)
             compdof(indx) = i1 &amp;
-                          + (i2-1)*dimlist(1) &amp;
-                          + (i3-1)*dimlist(2)*dimlist(1) &amp;
-                          + (indices(i4)-1)*dimlist(3)*dimlist(2)*dimlist(1)
+                          + (i2-1)*int(dimlist(1),PIO_OFFSET) &amp;
+                          + (i3-1)*int(dimlist(2),PIO_OFFSET)*int(dimlist(1),PIO_OFFSET) &amp;
+                          + int(indices(i4)-1,PIO_OFFSET)*int(dimlist(3),PIO_OFFSET)*int(dimlist(2),PIO_OFFSET)*int(dimlist(1),PIO_OFFSET)
             indx = indx + 1
          end do
          end do
@@ -1100,7 +1103,7 @@
          do i3=1,dimlist(3)
          do i2=1,dimlist(2)
          do i1=1,dimlist(1)
-            compdof(indx) = i1 + (i2-1)*dimlist(1) + (indices(i3)-1)*dimlist(2)*dimlist(1)
+            compdof(indx) = i1 + (i2-1)*int(dimlist(1),PIO_OFFSET) + int(indices(i3)-1,PIO_OFFSET)*int(dimlist(2),PIO_OFFSET)*int(dimlist(1),PIO_OFFSET)
             indx = indx + 1
          end do
          end do
@@ -1108,13 +1111,13 @@
       else if (ndims == 2) then
          do i2=1,dimlist(2)
          do i1=1,dimlist(1)
-            compdof(indx) = i1 + (indices(i2)-1)*dimlist(1)
+            compdof(indx) = i1 + int(indices(i2)-1,PIO_OFFSET)*int(dimlist(1),PIO_OFFSET)
             indx = indx + 1
          end do
          end do
       else if (ndims == 1) then
          do i1=1,dimlist(1)
-            compdof(indx) = indices(i1)
+            compdof(indx) = int(indices(i1),PIO_OFFSET)
             indx = indx + 1
          end do
       end if

</font>
</pre>