Ignore:
Timestamp:
09/22/15 14:01:30 (9 years ago)
Author:
rlacroix
Message:

XIOS 1.0: Add the Fortran interface for the new "time_counter" file attribute.

I forgot that the change had been made in XIOS 1.0 too...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/branchs/xios-1.0/src/interface/c_attr/icfile_attr.cpp

    r608 r703  
    333333   
    334334   
     335  void cxios_set_file_time_counter(file_Ptr file_hdl, const char * time_counter, int time_counter_size) 
     336  { 
     337    std::string time_counter_str; 
     338    if(!cstr2string(time_counter, time_counter_size, time_counter_str)) return; 
     339     CTimer::get("XIOS").resume(); 
     340    file_hdl->time_counter.fromString(time_counter_str); 
     341    file_hdl->sendAttributToServer(file_hdl->time_counter); 
     342     CTimer::get("XIOS").suspend(); 
     343  } 
     344   
     345  void cxios_get_file_time_counter(file_Ptr file_hdl, char * time_counter, int time_counter_size) 
     346  { 
     347     CTimer::get("XIOS").resume(); 
     348    if(!string_copy(file_hdl->time_counter.getInheritedStringValue(),time_counter , time_counter_size)) 
     349      ERROR("void cxios_get_file_time_counter(file_Ptr file_hdl, char * time_counter, int time_counter_size)", <<"Input string is to short"); 
     350     CTimer::get("XIOS").suspend(); 
     351  } 
     352   
     353  bool cxios_is_defined_file_time_counter(file_Ptr file_hdl ) 
     354  { 
     355    CTimer::get("XIOS").resume(); 
     356    bool isDefined = file_hdl->time_counter.hasInheritedValue(); 
     357    CTimer::get("XIOS").suspend(); 
     358    return isDefined; 
     359  } 
     360   
     361   
     362   
    335363  void cxios_set_file_type(file_Ptr file_hdl, const char * type, int type_size) 
    336364  { 
Note: See TracChangeset for help on using the changeset viewer.