Changeset 2339 for XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c/iczoom.cpp
- Timestamp:
- 06/28/22 11:59:40 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c/iczoom.cpp
r1622 r2339 15 15 #include "icutil.hpp" 16 16 #include "timer.hpp" 17 #include " zoom_axis.hpp"18 #include " zoom_domain.hpp"17 #include "extract_axis.hpp" 18 #include "extract_domain.hpp" 19 19 20 20 extern "C" … … 24 24 // ----------------------- Redéfinition de types ---------------------------- 25 25 26 typedef xios::C ZoomAxis * XZoomAxisPtr;27 typedef xios::C ZoomDomain * XZoomDomainPtr;26 typedef xios::CExtractAxis * XExtractAxisPtr; 27 typedef xios::CExtractDomain * XExtractDomainPtr; 28 28 // ------------------------ Création des handle ----------------------------- 29 void cxios_zoom_axis_handle_create (X ZoomAxisPtr * _ret, const char * _id, int _id_len)29 void cxios_zoom_axis_handle_create (XExtractAxisPtr * _ret, const char * _id, int _id_len) 30 30 TRY 31 31 { 32 32 std::string id; 33 33 if (!cstr2string(_id, _id_len, id)) return; 34 cout << "WARNING : you are using the zoom_axis interface. zoom_domain is deprecated, replace it with extract_axis." << endl; 35 cout << "\t Calls to xios_set/get_zoom_axis_attr must be replaced with xios_set/get_extract_axis_attr in your model." << endl; 34 36 CTimer::get("XIOS").resume() ; 35 *_ret = xios::C ZoomAxis::get(id);37 *_ret = xios::CExtractAxis::get(id); 36 38 CTimer::get("XIOS").suspend() ; 37 39 } … … 44 46 std::string id; 45 47 if (!cstr2string(_id, _id_len, id)) return; 48 cout << "WARNING : you are using the zoom_axis interface. zoom_domain is deprecated, replace it with extract_axis." << endl; 49 cout << "\t Calls to xios_set/get_zoom_axis_attr must be replaced with xios_set/get_extract_axis_attr in your model." << endl; 46 50 47 51 CTimer::get("XIOS").resume() ; 48 *_ret = xios::C ZoomAxis::has(id);52 *_ret = xios::CExtractAxis::has(id); 49 53 CTimer::get("XIOS").suspend() ; 50 54 } … … 52 56 53 57 // ------------------------ Création des handle ----------------------------- 54 void cxios_zoom_domain_handle_create(X ZoomDomainPtr * _ret, const char * _id, int _id_len)58 void cxios_zoom_domain_handle_create(XExtractDomainPtr * _ret, const char * _id, int _id_len) 55 59 TRY 56 60 { 57 61 std::string id; 58 62 if (!cstr2string(_id, _id_len, id)) return; 63 cout << "WARNING : you are using the zoom_domain interface. zoom_domain is deprecated, replace it with extract_domain." << endl; 64 cout << "\t Calls to xios_set/get_zoom_domain_attr must be replaced with xios_set/get_extract_domain_attr in your model." << endl; 59 65 CTimer::get("XIOS").resume() ; 60 *_ret = xios::C ZoomDomain::get(id);66 *_ret = xios::CExtractDomain::get(id); 61 67 CTimer::get("XIOS").suspend() ; 62 68 } … … 69 75 std::string id; 70 76 if (!cstr2string(_id, _id_len, id)) return; 71 77 cout << "WARNING : you are using the zoom_domain interface. zoom_domain is deprecated, replace it with extract_domain." << endl; 78 cout << "\t Calls to xios_set/get_zoom_domain_attr must be replaced with xios_set/get_extract_domain_attr in your model." << endl; 72 79 CTimer::get("XIOS").resume() ; 73 *_ret = xios::C ZoomDomain::has(id);80 *_ret = xios::CExtractDomain::has(id); 74 81 CTimer::get("XIOS").suspend() ; 75 82 }
Note: See TracChangeset
for help on using the changeset viewer.