Ignore:
Timestamp:
09/24/15 15:55:17 (9 years ago)
Author:
rlacroix
Message:

Append mode: Detect the correct restart point and erase some records if need be.

File:
1 edited

Legend:

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

    r687 r707  
    3232      , refObject(), baseRefObject() 
    3333      , grid(), file() 
     34      , written(false) 
    3435      , nstep(0), nstepMax(0) 
    3536      , hasOutputFile(false) 
     
    4344      , refObject(), baseRefObject() 
    4445      , grid(), file() 
     46      , written(false) 
    4547      , nstep(0), nstepMax(0) 
    4648      , hasOutputFile(false) 
     
    442444   } 
    443445 
    444    void CField::resetNStep(void) 
    445    { 
    446       this->nstep = 0; 
     446   void CField::resetNStep(StdSize nstep /*= 0*/) 
     447   { 
     448      this->nstep = nstep; 
    447449   } 
    448450 
     
    457459   { 
    458460      return !this->refObject.empty(); 
     461   } 
     462 
     463   //---------------------------------------------------------------- 
     464 
     465   bool CField::wasWritten() const 
     466   { 
     467     return written; 
     468   } 
     469 
     470   void CField::setWritten() 
     471   { 
     472     written = true; 
    459473   } 
    460474 
Note: See TracChangeset for help on using the changeset viewer.