Ignore:
Timestamp:
05/11/16 16:11:10 (8 years ago)
Author:
ymipsl
Message:

Add cyclic file attribute. If cyclic=true, when last time record of a field is read in a file, it will cycle at the beginning instead of send a EOF signal to the clients.

YM

File:
1 edited

Legend:

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

    r825 r850  
    5555    { 
    5656      case MULTI_FILE: 
    57         SuperClassWriter::getData(fieldData, fieldId, isCollective, field->getNStep() - 1); 
     57        SuperClassWriter::getData(fieldData, fieldId, isCollective, (field->getNStep() - 1)%field->nstepMax ); 
    5858        break; 
    5959      case ONE_FILE: 
     
    116116        } 
    117117 
    118         SuperClassWriter::getData(fieldData, fieldId, isCollective, field->getNStep() - 1, &start, &count); 
     118        SuperClassWriter::getData(fieldData, fieldId, isCollective, (field->getNStep() - 1)%field->nstepMax, &start, &count); 
    119119        break; 
    120120      } 
Note: See TracChangeset for help on using the changeset viewer.