Changeset 981 for XIOS/trunk/src/interface/c/icreduce_to_scalar.cpp
- Timestamp:
- 10/24/16 16:16:51 (8 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c/icreduce_to_scalar.cpp
r980 r981 15 15 #include "timer.hpp" 16 16 #include "reduce_axis_to_scalar.hpp" 17 #include "reduce_domain_to_scalar.hpp" 17 18 18 19 extern "C" … … 23 24 24 25 typedef xios::CReduceAxisToScalar * XReduceAxisToScalarPtr; 26 typedef xios::CReduceDomainToScalar * XReduceDomainToScalarPtr; 25 27 26 28 // ------------------------ Création des handle ----------------------------- … … 44 46 CTimer::get("XIOS").suspend() ; 45 47 } 48 49 void cxios_reduce_domain_to_scalar_handle_create(XReduceDomainToScalarPtr * _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::CReduceDomainToScalar::get(id); 55 CTimer::get("XIOS").suspend() ; 56 } 57 58 // -------------------- Vérification des identifiants ----------------------- 59 void cxios_reduce_domain_to_scalar_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::CReduceDomainToScalar::has(id); 66 CTimer::get("XIOS").suspend() ; 67 } 68 46 69 } // extern "C"
Note: See TracChangeset
for help on using the changeset viewer.