Changeset 1108


Ignore:
Timestamp:
04/26/17 17:40:16 (4 years ago)
Author:
ymipsl
Message:

Bug fix in append mode : when replay same period with only one temporal record in a file, netcdf crash due to large index dimension.

YM

File:
1 edited

Legend:

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

    r1097 r1108  
    27472747          StdSize record = 0; 
    27482748          double dtime(time); 
    2749           for (StdSize n = dimSize[0] - 1; n >= 0; n--) 
     2749          for (int n = dimSize[0] - 1; n >= 0; n--) 
    27502750          { 
    27512751            SuperClassWriter::getTimeAxisBounds(timeAxisBounds, timeAxisBoundsId, isCollective, n); 
     
    27542754            { 
    27552755              record = n + 1; 
    2756               break; 
     2756             break; 
    27572757            } 
    27582758          } 
    27592759          it = timeToRecordCache.insert(std::make_pair(time, record)).first; 
    27602760        } 
    2761         return it->second; 
     2761         return it->second; 
    27622762      } 
    27632763 
Note: See TracChangeset for help on using the changeset viewer.