Ignore:
Timestamp:
12/11/14 16:07:42 (10 years ago)
Author:
rlacroix
Message:

Convert more attributes to use the new duration type:

  • field: freq_op and freq_offset
  • file: output_freq, sync_freq and split_freq.

Remember that you now have to use the "xios_duration" type instead of strings to get/set those attributes through the Fortran interface.

File:
1 edited

Legend:

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

    r527 r538  
    712712           if (wtime) 
    713713           { 
    714               CDuration duration ; 
    715  
    716               duration=CDuration::FromString(field->freq_op) ; 
     714              CDuration duration = field->freq_op.getValue(); 
    717715              duration.solveTimeStep(*(context->calendar)); 
    718716              SuperClassWriter::addAttribute("interval_operation", duration.toString(), &fieldid); 
    719717 
    720               duration=CDuration::FromString(field->getRelFile()->output_freq) ; 
     718              duration = field->getRelFile()->output_freq.getValue(); 
    721719              duration.solveTimeStep(*(context->calendar)); 
    722720              SuperClassWriter::addAttribute("interval_write", duration.toString(), &fieldid); 
Note: See TracChangeset for help on using the changeset viewer.