Ignore:
Timestamp:
05/15/17 16:58:35 (7 years ago)
Author:
mhnguyen
Message:

Correcting a minor bug on writting unstructured grid

+) Correct the mapping between received data and written data.
+) Clean some redundant codes

Test
+) On Curie
+) Writing on unstructured grid works correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/node/domain.cpp

    r1130 r1132  
    13701370       hasBounds = true; 
    13711371     } 
     1372     else if (hasBoundValues) 
     1373     { 
     1374       hasBounds = true;        
     1375     } 
    13721376     else 
    13731377     { 
     
    27732777      }        
    27742778    } 
    2775  
    2776  
    2777  
    2778     // lonvalue.resize(zoom_ni*zoom_nj); 
    2779     // lonvalue = 0; 
    2780  
    2781     // if (hasBounds) 
    2782     // { 
    2783     //   bounds_lonvalue.resize(nvertex,zoom_ni*zoom_nj); 
    2784     //   bounds_lonvalue = 0.; 
    2785     // } 
    2786      
    2787     // if (0 == lonvalue.numElements()) return; 
    2788  
    2789     // for (i = 0; i < nbReceived; ++i) 
    2790     // { 
    2791     //   int rank = recvClientRanks_[i]; 
    2792     //   CArray<int,1> &indi = indGlob_[rank], &indj = indGlob_[rank];       
    2793     //   for (ind = 0; ind < indi.numElements(); ++ind) 
    2794     //   { 
    2795     //      iindex = indi(ind) % ni_glo; jindex = indj(ind) / ni_glo; 
    2796     //      index = (iindex - zoom_ibegin) + (jindex - zoom_jbegin) * zoom_ni; 
    2797     //      lonvalue(index) = recvLonValue[i](ind); 
    2798     //      if (hasBounds) 
    2799     //      {           
    2800     //       for (int nv = 0; nv < nvertex; ++nv) 
    2801     //         bounds_lonvalue(nv, index) = recvBoundsLonValue[i](nv, ind); 
    2802     //      }          
    2803     //   } 
    2804     // } 
    28052779  } 
    28062780 
Note: See TracChangeset for help on using the changeset viewer.