Ignore:
Timestamp:
10/22/12 13:47:08 (10 years ago)
Author:
ymipsl
Message:
  • zoom can be output in single file without need to patch the netcdf library
  • sequential version of netcdf4 are now managed. Can be used to output in multiple_file mode

YM

File:
1 edited

Legend:

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

    r369 r379  
    187187  void CField::writeField(void) 
    188188  { 
    189 //    if (! grid->domain->isEmpty() || getRelFile()->type.getValue()=="one_file") 
    190     if (! grid->domain->isEmpty() || getRelFile()->type == CFile::type_attr::one_file) 
    191     { 
    192       getRelFile()->checkFile(); 
    193       this->incrementNStep(); 
    194       getRelFile()->getDataOutput()->writeFieldData(CField::get(this)); 
    195     } 
     189    if (! getRelFile()->allDomainEmpty ) 
     190      if (! grid->domain->isEmpty() || getRelFile()->type == CFile::type_attr::one_file) 
     191      { 
     192        getRelFile()->checkFile(); 
     193        this->incrementNStep(); 
     194        getRelFile()->getDataOutput()->writeFieldData(CField::get(this)); 
     195      } 
    196196  } 
    197197   //---------------------------------------------------------------- 
     
    411411         const CDuration toffset = this->freq_operation - freq_offset_ - context->getCalendar()->getTimeStep();  
    412412         *this->last_operation   = *this->last_operation - toffset;   
    413          cout<<operation<<endl ; 
    414           
     413           
    415414#define DECLARE_FUNCTOR(MType, mtype)              \ 
    416415   if  (operation.getValue().compare(#mtype) == 0) \ 
Note: See TracChangeset for help on using the changeset viewer.