Changeset 2339
- Timestamp:
- 06/28/22 11:59:40 (11 months ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src
- Files:
-
- 3 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 } -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/axis.cpp
r2304 r2339 47 47 TRY 48 48 { 49 m["zoom_axis"] = TRANS_ ZOOM_AXIS;49 m["zoom_axis"] = TRANS_EXTRACT_AXIS; 50 50 m["interpolate_axis"] = TRANS_INTERPOLATE_AXIS; 51 51 m["extract_axis"] = TRANS_EXTRACT_AXIS; … … 808 808 if (ite != it) 809 809 { 810 if (it->first == "zoom_axis") 811 { 812 info(0) << "WARNING : " << it->first << " is deprecated, replaced by extract_axis." << endl; 813 } 810 814 transformationMap_.push_back(std::make_pair(it->second, CTransformation<CAxis>::createTransformation(it->second, 811 815 nodeId, -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.cpp
r2338 r2339 2342 2342 TRY 2343 2343 { 2344 m["zoom_domain"] = TRANS_ ZOOM_DOMAIN;2344 m["zoom_domain"] = TRANS_EXTRACT_DOMAIN; 2345 2345 m["interpolate_domain"] = TRANS_INTERPOLATE_DOMAIN; 2346 2346 m["generate_rectilinear_domain"] = TRANS_GENERATE_RECTILINEAR_DOMAIN; … … 2536 2536 if (ite != it) 2537 2537 { 2538 if (it->first == "zoom_domain") 2539 { 2540 info(0) << "WARNING : " << it->first << " is deprecated, replaced by extract_domain." << endl; 2541 } 2538 2542 transformationMap_.push_back(std::make_pair(it->second, CTransformation<CDomain>::createTransformation(it->second, 2539 2543 nodeId,
Note: See TracChangeset
for help on using the changeset viewer.