Ignore:
Timestamp:
04/08/16 15:00:29 (8 years ago)
Author:
mhnguyen
Message:

Exposing some functions to Fortran interface

+) Allow add axis and domain into grid with Fortran interface
+) Remove some redundant code

Test
+) On Curie
+) test_client passes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/c/icxml_tree.cpp

    r591 r835  
    310310   } 
    311311 
     312   void cxios_xml_tree_add_axistogrid 
     313      (XGridPtr parent_, XAxisPtr * child_, const char * child_id, int child_id_size) 
     314   { 
     315      std::string child_id_str; 
     316      CTimer::get("XIOS").resume() ; 
     317      if (cstr2string(child_id, child_id_size, child_id_str)) 
     318      { 
     319         *child_ = parent_->addAxis(child_id_str); 
     320      } 
     321      else 
     322      { 
     323         *child_ = parent_->addAxis(); 
     324      } 
     325      CTimer::get("XIOS").suspend() ; 
     326   } 
     327 
     328   void cxios_xml_tree_add_domaintogrid 
     329      (XGridPtr parent_, XDomainPtr * child_, const char * child_id, int child_id_size) 
     330   { 
     331      std::string child_id_str; 
     332      CTimer::get("XIOS").resume() ; 
     333      if (cstr2string(child_id, child_id_size, child_id_str)) 
     334      { 
     335         *child_ = parent_->addDomain(child_id_str); 
     336      } 
     337      else 
     338      { 
     339         *child_ = parent_->addDomain(); 
     340      } 
     341      CTimer::get("XIOS").suspend() ; 
     342   } 
    312343 
    313344   // ----------------------- Affichage de l'arborescence ---------------------- 
Note: See TracChangeset for help on using the changeset viewer.