Changeset 294


Ignore:
Timestamp:
10/11/04 16:31:49 (15 years ago)
Author:
jkettleb
Message:

Fixed indexing but in pp_copy_data.
CV: ----------------------------------------------------------------------

File:
1 edited

Legend:

Unmodified
Added
Removed
  • IO_handling/trunk/ppio/cdat-4.0b3-ppio_v0.3.patch

    r293 r294  
    31043104diff -Naur cdat-4.0b3/libcdms/src/cdunif/cdunifpp/cdunifpp_data.c cdat-4.0b3-pp/libcdms/src/cdunif/cdunifpp/cdunifpp_data.c 
    31053105--- cdat-4.0b3/libcdms/src/cdunif/cdunifpp/cdunifpp_data.c      1970-01-01 01:00:00.000000000 +0100 
    3106 +++ cdat-4.0b3-pp/libcdms/src/cdunif/cdunifpp/cdunifpp_data.c   2004-11-09 17:01:47.000000000 +0000 
     3106+++ cdat-4.0b3-pp/libcdms/src/cdunif/cdunifpp/cdunifpp_data.c   2004-11-10 15:32:23.000000000 +0000 
    31073107@@ -0,0 +1,185 @@ 
    31083108+/* 
     
    31813181+    srcoffset=0; 
    31823182+    destoffset=0; 
    3183 +    for (idim=ndim-1 ; idim>=0; idim--) { 
     3183+    for (idim=0; idim < ndim ; idim++) { 
    31843184+      srcoffset *= size[idim];       
    31853185+      destoffset *= count[idim]; 
     
    31963196+ 
    31973197+    /* increment indices */ 
    3198 +    for (idim=0; idim < ndim ; idim++) { 
     3198+    for (idim=ndim-1 ; idim>=0; idim--) { 
    31993199+      indices[idim]++; 
    32003200+      if (indices[idim]==count[idim]) 
     
    32033203+       break; /* no internal carry */ 
    32043204+    } 
    3205 +    if (idim==ndim) 
     3205+    if (idim<0) 
    32063206+      carryout=1; 
    32073207+  } 
Note: See TracChangeset for help on using the changeset viewer.