Ignore:
Timestamp:
09/23/13 11:41:01 (11 years ago)
Author:
ymipsl
Message:

Bug fix in one file mode for unstructured grid.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/output/nc4_data_output.cpp

    r449 r450  
    415415                 start[0]=0 ;   
    416416                 count[0]=0 ;   
     417                 startBounds[1]=0 ;   
     418                 countBounds[1]=domain->nvertex ; 
    417419                 startBounds[0]=0 ;   
    418                  countBounds[0]=domain->nvertex ; 
    419                  startBounds[1]=0 ;   
    420                  countBounds[1]=0 ;   
     420                 countBounds[0]=0 ;   
    421421               } 
    422422               else 
     
    424424                 start[0]=domain->zoom_jbegin_srv-domain->zoom_jbegin ;  
    425425                 count[0]=domain->zoom_nj_srv ;  
    426                  startBounds[0]=0 ;  
    427                  countBounds[0]=domain->nvertex ; 
    428                  startBounds[1]=domain->zoom_jbegin_srv-domain->zoom_jbegin ;  
    429                  countBounds[1]=domain->zoom_nj_srv ;    
     426                 startBounds[0]=domain->zoom_jbegin_srv-domain->zoom_jbegin ;  
     427                 startBounds[1]=0 ;   
     428                 countBounds[0]=domain->zoom_nj_srv ;   
     429                 countBounds[1]=domain->nvertex ; 
    430430               } 
    431431               SuperClassWriter::writeData(domain->latvalue_srv, latid, isCollective, 0,&start,&count); 
     
    433433               if (domain->hasBounds)  
    434434               { 
    435                  SuperClassWriter::writeData(domain->bounds_lon_srv, bounds_lonid, isCollective, 0,&start,&count); 
     435                 SuperClassWriter::writeData(domain->bounds_lon_srv, bounds_lonid, isCollective, 0,&startBounds,&countBounds); 
    436436                 SuperClassWriter::writeData(domain->bounds_lat_srv, bounds_latid, isCollective, 0,&startBounds,&countBounds); 
    437437               } 
Note: See TracChangeset for help on using the changeset viewer.