Ignore:
Timestamp:
02/23/12 14:57:50 (12 years ago)
Author:
ymipsl
Message:

Add splitting file functionality
new file attribut "split_freq" to put the frequency of splitting

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/field.cpp

    r314 r321  
    176176      } 
    177177       
    178       this->incrementNStep(); 
    179178      *last_Write_srv = writeDate; 
    180179      writeField() ; 
     
    184183  void CField::writeField(void) 
    185184  { 
    186     if (! grid->domain->isEmpty() || getRelFile()->type.getValue()=="one_file")  
     185    if (! grid->domain->isEmpty() || getRelFile()->type.getValue()=="one_file") 
     186    { 
     187      getRelFile()->checkFile(); 
     188      this->incrementNStep(); 
    187189      getRelFile()->getDataOutput()->writeFieldData(CObjectFactory::GetObject<CField>(this)); 
     190    } 
    188191  } 
    189192   //---------------------------------------------------------------- 
     
    222225   { 
    223226      this->nstep++; 
     227   } 
     228  
     229   void CField::resetNStep(void) 
     230   { 
     231      this->nstep=0; 
    224232   } 
    225233 
Note: See TracChangeset for help on using the changeset viewer.