Ignore:
Timestamp:
09/15/15 17:31:19 (9 years ago)
Author:
mhnguyen
Message:

Updating some fortran interface

Test
+) On Curie
+) All tests pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/c_attr/icdomaingroup_attr.cpp

    r674 r690  
    360360 
    361361 
     362  void cxios_set_domaingroup_domain_src(domaingroup_Ptr domaingroup_hdl, const char * domain_src, int domain_src_size) 
     363  { 
     364    std::string domain_src_str; 
     365    if (!cstr2string(domain_src, domain_src_size, domain_src_str)) return; 
     366    CTimer::get("XIOS").resume(); 
     367    domaingroup_hdl->domain_src.setValue(domain_src_str); 
     368    CTimer::get("XIOS").suspend(); 
     369  } 
     370 
     371  void cxios_get_domaingroup_domain_src(domaingroup_Ptr domaingroup_hdl, char * domain_src, int domain_src_size) 
     372  { 
     373    CTimer::get("XIOS").resume(); 
     374    if (!string_copy(domaingroup_hdl->domain_src.getInheritedValue(), domain_src, domain_src_size)) 
     375      ERROR("void cxios_get_domaingroup_domain_src(domaingroup_Ptr domaingroup_hdl, char * domain_src, int domain_src_size)", << "Input string is too short"); 
     376    CTimer::get("XIOS").suspend(); 
     377  } 
     378 
     379  bool cxios_is_defined_domaingroup_domain_src(domaingroup_Ptr domaingroup_hdl) 
     380  { 
     381     CTimer::get("XIOS").resume(); 
     382     bool isDefined = domaingroup_hdl->domain_src.hasInheritedValue(); 
     383     CTimer::get("XIOS").suspend(); 
     384     return isDefined; 
     385  } 
     386 
     387 
    362388  void cxios_set_domaingroup_group_ref(domaingroup_Ptr domaingroup_hdl, const char * group_ref, int group_ref_size) 
    363389  { 
Note: See TracChangeset for help on using the changeset viewer.