Changeset 437


Ignore:
Timestamp:
06/06/13 17:59:08 (6 years ago)
Author:
ymipsl
Message:

not commited file from rev 436

YM

File:
1 edited

Legend:

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

    r434 r437  
    459459         if (wtime) 
    460460         { 
    461             SuperClassWriter::addAttribute 
    462                   ("interval_operation", field->freq_op.getValue(), &fieldid); 
    463             SuperClassWriter::addAttribute 
    464                   ("interval_write", field->getRelFile()->output_freq.getValue(), &fieldid); 
     461            CDuration duration ; 
     462 
     463            duration.FromString(field->freq_op) ; 
     464            duration.solveTimeStep(*(context->calendar)); 
     465            SuperClassWriter::addAttribute("interval_operation", duration.toString(), &fieldid); 
     466 
     467            duration.FromString(field->getRelFile()->output_freq) ; 
     468            duration.solveTimeStep(*(context->calendar)); 
     469            SuperClassWriter::addAttribute("interval_write", duration.toString(), &fieldid); 
    465470         } 
    466471          
Note: See TracChangeset for help on using the changeset viewer.