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/icfilegroup_attr.cpp

    r608 r703  
    361361   
    362362   
     363  void cxios_set_filegroup_time_counter(filegroup_Ptr filegroup_hdl, const char * time_counter, int time_counter_size) 
     364  { 
     365    std::string time_counter_str; 
     366    if(!cstr2string(time_counter, time_counter_size, time_counter_str)) return; 
     367     CTimer::get("XIOS").resume(); 
     368    filegroup_hdl->time_counter.fromString(time_counter_str); 
     369    filegroup_hdl->sendAttributToServer(filegroup_hdl->time_counter); 
     370     CTimer::get("XIOS").suspend(); 
     371  } 
     372   
     373  void cxios_get_filegroup_time_counter(filegroup_Ptr filegroup_hdl, char * time_counter, int time_counter_size) 
     374  { 
     375     CTimer::get("XIOS").resume(); 
     376    if(!string_copy(filegroup_hdl->time_counter.getInheritedStringValue(),time_counter , time_counter_size)) 
     377      ERROR("void cxios_get_filegroup_time_counter(filegroup_Ptr filegroup_hdl, char * time_counter, int time_counter_size)", <<"Input string is to short"); 
     378     CTimer::get("XIOS").suspend(); 
     379  } 
     380   
     381  bool cxios_is_defined_filegroup_time_counter(filegroup_Ptr filegroup_hdl ) 
     382  { 
     383    CTimer::get("XIOS").resume(); 
     384    bool isDefined = filegroup_hdl->time_counter.hasInheritedValue(); 
     385    CTimer::get("XIOS").suspend(); 
     386    return isDefined; 
     387  } 
     388   
     389   
     390   
    363391  void cxios_set_filegroup_type(filegroup_Ptr filegroup_hdl, const char * type, int type_size) 
    364392  { 
Note: See TracChangeset for help on using the changeset viewer.