Changeset 952


Ignore:
Timestamp:
09/26/16 16:26:38 (5 years ago)
Author:
ymipsl
Message:
  • Attribut record_offset accept now negative value.
  • Field are not output in files until nstep > 0.

YM

Location:
XIOS/trunk/src
Files:
4 edited

Legend:

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

    r931 r952  
    19081908        CGrid* grid = field->grid; 
    19091909 
     1910        if (field->getNStep()<1) return ; 
     1911         
    19101912        if (!grid->doGridHaveDataToWrite()) 
    19111913          if (SuperClass::type == MULTI_FILE || !isCollective) return; 
  • XIOS/trunk/src/node/field.cpp

    r934 r952  
    434434   } 
    435435 
    436    StdSize CField::getNStep(void) const 
     436   int CField::getNStep(void) const 
    437437   { 
    438438      return this->nstep; 
     
    451451   } 
    452452 
    453    void CField::resetNStep(StdSize nstep /*= 0*/) 
     453   void CField::resetNStep(int nstep /*= 0*/) 
    454454   { 
    455455      this->nstep = nstep; 
  • XIOS/trunk/src/node/field.hpp

    r887 r952  
    8181 
    8282      public: 
    83          StdSize getNStep(void) const; 
     83         int getNStep(void) const; 
    8484 
    8585         template <int N> void getData(CArray<double, N>& _data) const; 
     
    9090         void setRelFile(CFile* _file); 
    9191         void incrementNStep(void); 
    92          void resetNStep(StdSize nstep = 0); 
     92         void resetNStep(int nstep = 0); 
    9393         void resetNStepMax(); 
    9494 
     
    189189 
    190190         bool written; //<! Was the field written at least once 
    191          StdSize nstep, nstepMax; 
     191         int nstep, nstepMax; 
    192192         bool isEOF; 
    193193         CDate lastlast_Write_srv, last_Write_srv, last_operation_srv; 
  • XIOS/trunk/src/node/file.cpp

    r920 r952  
    243243      allDomainEmpty = true; 
    244244 
    245       if (!record_offset.isEmpty() && record_offset < 0) 
    246         ERROR("void CFile::initFile(void)", 
    247               "Invalid 'record_offset', this attribute cannot be negative."); 
    248       const size_t recordOffset = record_offset.isEmpty() ? 0 : record_offset; 
     245//      if (!record_offset.isEmpty() && record_offset < 0) 
     246//        ERROR("void CFile::initFile(void)", 
     247//              "Invalid 'record_offset', this attribute cannot be negative."); 
     248      const int recordOffset = record_offset.isEmpty() ? 0 : record_offset; 
    249249 
    250250      set<CAxis*> setAxis; 
Note: See TracChangeset for help on using the changeset viewer.