Ignore:
Timestamp:
09/24/20 12:16:22 (4 years ago)
Author:
ymipsl
Message:

XIOS coupling : Update fortran interface
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c_attr/iccontext_attr.cpp

    r1626 r1941  
    1616{ 
    1717  typedef xios::CContext* context_Ptr; 
     18 
     19  void cxios_set_context_attached_mode(context_Ptr context_hdl, bool attached_mode) 
     20  { 
     21    CTimer::get("XIOS").resume(); 
     22    context_hdl->attached_mode.setValue(attached_mode); 
     23    CTimer::get("XIOS").suspend(); 
     24  } 
     25 
     26  void cxios_get_context_attached_mode(context_Ptr context_hdl, bool* attached_mode) 
     27  { 
     28    CTimer::get("XIOS").resume(); 
     29    *attached_mode = context_hdl->attached_mode.getInheritedValue(); 
     30    CTimer::get("XIOS").suspend(); 
     31  } 
     32 
     33  bool cxios_is_defined_context_attached_mode(context_Ptr context_hdl) 
     34  { 
     35     CTimer::get("XIOS").resume(); 
     36     bool isDefined = context_hdl->attached_mode.hasInheritedValue(); 
     37     CTimer::get("XIOS").suspend(); 
     38     return isDefined; 
     39  } 
     40 
    1841 
    1942  void cxios_set_context_output_dir(context_Ptr context_hdl, const char * output_dir, int output_dir_size) 
Note: See TracChangeset for help on using the changeset viewer.