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

    r314 r318  
    9999   
    100100   
     101  void cxios_set_file_split_freq(file_Ptr file_hdl, const char * split_freq, int split_freq_size) 
     102  { 
     103    std::string split_freq_str; 
     104    if(!cstr2string(split_freq, split_freq_size, split_freq_str)) return; 
     105    file_hdl->split_freq.setValue(split_freq_str); 
     106    file_hdl->sendAttributToServer(file_hdl->split_freq); 
     107  } 
     108   
     109  void cxios_get_file_split_freq(file_Ptr file_hdl, char * split_freq, int split_freq_size) 
     110  { 
     111    if(!string_copy(file_hdl->split_freq.getValue(),split_freq , split_freq_size)) 
     112      ERROR("void cxios_get_file_split_freq(file_Ptr file_hdl, char * split_freq, int split_freq_size)", <<"Input string is to short"); 
     113  } 
     114   
     115   
     116  void cxios_set_file_sync_freq(file_Ptr file_hdl, const char * sync_freq, int sync_freq_size) 
     117  { 
     118    std::string sync_freq_str; 
     119    if(!cstr2string(sync_freq, sync_freq_size, sync_freq_str)) return; 
     120    file_hdl->sync_freq.setValue(sync_freq_str); 
     121    file_hdl->sendAttributToServer(file_hdl->sync_freq); 
     122  } 
     123   
     124  void cxios_get_file_sync_freq(file_Ptr file_hdl, char * sync_freq, int sync_freq_size) 
     125  { 
     126    if(!string_copy(file_hdl->sync_freq.getValue(),sync_freq , sync_freq_size)) 
     127      ERROR("void cxios_get_file_sync_freq(file_Ptr file_hdl, char * sync_freq, int sync_freq_size)", <<"Input string is to short"); 
     128  } 
     129   
     130   
    101131  void cxios_set_file_type(file_Ptr file_hdl, const char * type, int type_size) 
    102132  { 
Note: See TracChangeset for help on using the changeset viewer.