Ignore:
Timestamp:
02/21/12 15:34:27 (12 years ago)
Author:
ymipsl
Message:
  • Adding new file attribut : sync_freq : flush file for a given frequency
  • Now, when a file has a single domain, domain id is not anymore appended to the coordinate name.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/fortran_attr_interface/icfilegroup_attr.cpp

    r314 r318  
    114114   
    115115   
     116  void cxios_set_filegroup_split_freq(filegroup_Ptr filegroup_hdl, const char * split_freq, int split_freq_size) 
     117  { 
     118    std::string split_freq_str; 
     119    if(!cstr2string(split_freq, split_freq_size, split_freq_str)) return; 
     120    filegroup_hdl->split_freq.setValue(split_freq_str); 
     121    filegroup_hdl->sendAttributToServer(filegroup_hdl->split_freq); 
     122  } 
     123   
     124  void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size) 
     125  { 
     126    if(!string_copy(filegroup_hdl->split_freq.getValue(),split_freq , split_freq_size)) 
     127      ERROR("void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size)", <<"Input string is to short"); 
     128  } 
     129   
     130   
     131  void cxios_set_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, const char * sync_freq, int sync_freq_size) 
     132  { 
     133    std::string sync_freq_str; 
     134    if(!cstr2string(sync_freq, sync_freq_size, sync_freq_str)) return; 
     135    filegroup_hdl->sync_freq.setValue(sync_freq_str); 
     136    filegroup_hdl->sendAttributToServer(filegroup_hdl->sync_freq); 
     137  } 
     138   
     139  void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size) 
     140  { 
     141    if(!string_copy(filegroup_hdl->sync_freq.getValue(),sync_freq , sync_freq_size)) 
     142      ERROR("void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size)", <<"Input string is to short"); 
     143  } 
     144   
     145   
    116146  void cxios_set_filegroup_type(filegroup_Ptr filegroup_hdl, const char * type, int type_size) 
    117147  { 
Note: See TracChangeset for help on using the changeset viewer.