Changeset 2394 for XIOS3


Ignore:
Timestamp:
08/30/22 16:36:08 (21 months ago)
Author:
jderouillat
Message:

Workaround for cases where some servers have no data to write (rectilinear domain, null strides are not tolerated in blitz Range function)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/io/nc4_data_output.cpp

    r2391 r2394  
    393393                       start[0]=domain->jbegin; 
    394394                       count[0]=domain->nj; 
    395                        CArray<double,1> lat = domain->latvalue(Range(fromStart,toEnd,domain->ni)); 
     395                       CArray<double,1> lat; 
     396                       lat.resize( domain->nj.getValue() ); 
     397                       for (int j=0;j<domain->nj.getValue();j++) lat(j) = domain->latvalue(j*domain->ni.getValue()); 
    396398                       SuperClassWriter::writeData(CArray<double,1>(lat.copy()), latid, isCollective, 0,&start,&count); 
    397399 
Note: See TracChangeset for help on using the changeset viewer.