Ignore:
Timestamp:
11/12/15 16:33:25 (8 years ago)
Author:
mhnguyen
Message:

Generating interface for transformations

+) Update Fortran interface for other transformations
+) Remove some redundant files
+) Update test to new interface

Test
+) On Curie
+) test_client and test_complete are correct

File:
1 moved

Legend:

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

    r785 r786  
    1515#include "timer.hpp" 
    1616#include "zoom_axis.hpp" 
     17#include "zoom_domain.hpp" 
    1718 
    1819extern "C" 
     
    2324 
    2425   typedef xios::CZoomAxis   * XZoomAxisPtr; 
    25  
     26   typedef xios::CZoomDomain * XZoomDomainPtr; 
    2627   // ------------------------ Création des handle ----------------------------- 
    2728   void cxios_zoom_axis_handle_create (XZoomAxisPtr * _ret, const char * _id, int _id_len) 
     
    4445      CTimer::get("XIOS").suspend() ; 
    4546   } 
     47 
     48   // ------------------------ Création des handle ----------------------------- 
     49   void cxios_zoom_domain_handle_create(XZoomDomainPtr * _ret, const char * _id, int _id_len) 
     50   { 
     51      std::string id; 
     52      if (!cstr2string(_id, _id_len, id)) return; 
     53      CTimer::get("XIOS").resume() ; 
     54      *_ret = xios::CZoomDomain::get(id); 
     55      CTimer::get("XIOS").suspend() ; 
     56   } 
     57 
     58   // -------------------- Vérification des identifiants ----------------------- 
     59   void cxios_zoom_domain_valid_id(bool * _ret, const char * _id, int _id_len) 
     60   { 
     61      std::string id; 
     62      if (!cstr2string(_id, _id_len, id)) return; 
     63 
     64      CTimer::get("XIOS").resume() ; 
     65      *_ret = xios::CZoomDomain::has(id); 
     66      CTimer::get("XIOS").suspend() ; 
     67   } 
    4668} // extern "C" 
Note: See TracChangeset for help on using the changeset viewer.