Changeset 2550
- Timestamp:
- 08/30/23 10:59:54 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/io/nc4_data_output.cpp
r2542 r2550 279 279 break; 280 280 case CDomain::type_attr::rectilinear : 281 CArray<double,1> lat = domain->latvalue(Range(fromStart,toEnd,domain->ni)) ; 281 //CArray<double,1> lat = domain->latvalue(Range(fromStart,toEnd,domain->ni)) ; 282 CArray<double,1> lat; 283 lat.resize( domain->njValue_); 284 for (int j=0;j<domain->njValue_;j++) lat(j) = domain->latvalue(j*domain->niValue_); 282 285 SuperClassWriter::writeData(CArray<double,1>(lat.copy()), latid, isCollective, 0); 283 CArray<double,1> lon = domain->lonvalue(Range(0,domain->ni-1)) ; 286 //CArray<double,1> lon = domain->lonvalue(Range(0,domain->ni-1)) ; 287 CArray<double,1> lon = domain->lonvalue(Range(0,domain->niValue_-1)); 284 288 SuperClassWriter::writeData(CArray<double,1>(lon.copy()), lonid, isCollective, 0); 285 289 break;
Note: See TracChangeset
for help on using the changeset viewer.