1 | /* ************************************************************************** * |
---|
2 | * Interface auto generated - do not modify * |
---|
3 | * ************************************************************************** */ |
---|
4 | |
---|
5 | #include <boost/multi_array.hpp> |
---|
6 | #include <boost/shared_ptr.hpp> |
---|
7 | #include "xmlioserver.hpp" |
---|
8 | #include "attribute_template.hpp" |
---|
9 | #include "object_template.hpp" |
---|
10 | #include "group_template.hpp" |
---|
11 | #include "icutil.hpp" |
---|
12 | #include "icdate.hpp" |
---|
13 | #include "timer.hpp" |
---|
14 | #include "node_type.hpp" |
---|
15 | |
---|
16 | extern "C" |
---|
17 | { |
---|
18 | typedef xios::CDomain* domain_Ptr; |
---|
19 | |
---|
20 | void cxios_set_domain_bounds_lat(domain_Ptr domain_hdl, double* bounds_lat, int extent1, int extent2) |
---|
21 | { |
---|
22 | CTimer::get("XIOS").resume(); |
---|
23 | CArray<double,2> tmp(bounds_lat,shape(extent1,extent2),neverDeleteData) ; |
---|
24 | domain_hdl->bounds_lat.reference(tmp.copy()); |
---|
25 | CTimer::get("XIOS").suspend(); |
---|
26 | } |
---|
27 | |
---|
28 | void cxios_get_domain_bounds_lat(domain_Ptr domain_hdl, double* bounds_lat, int extent1, int extent2) |
---|
29 | { |
---|
30 | CTimer::get("XIOS").resume(); |
---|
31 | CArray<double,2> tmp(bounds_lat,shape(extent1,extent2),neverDeleteData) ; |
---|
32 | tmp=domain_hdl->bounds_lat.getInheritedValue() ; |
---|
33 | CTimer::get("XIOS").suspend(); |
---|
34 | } |
---|
35 | |
---|
36 | bool cxios_is_defined_domain_bounds_lat(domain_Ptr domain_hdl ) |
---|
37 | { |
---|
38 | CTimer::get("XIOS").resume(); |
---|
39 | return domain_hdl->bounds_lat.hasInheritedValue(); |
---|
40 | CTimer::get("XIOS").suspend(); |
---|
41 | } |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | void cxios_set_domain_bounds_lon(domain_Ptr domain_hdl, double* bounds_lon, int extent1, int extent2) |
---|
46 | { |
---|
47 | CTimer::get("XIOS").resume(); |
---|
48 | CArray<double,2> tmp(bounds_lon,shape(extent1,extent2),neverDeleteData) ; |
---|
49 | domain_hdl->bounds_lon.reference(tmp.copy()); |
---|
50 | CTimer::get("XIOS").suspend(); |
---|
51 | } |
---|
52 | |
---|
53 | void cxios_get_domain_bounds_lon(domain_Ptr domain_hdl, double* bounds_lon, int extent1, int extent2) |
---|
54 | { |
---|
55 | CTimer::get("XIOS").resume(); |
---|
56 | CArray<double,2> tmp(bounds_lon,shape(extent1,extent2),neverDeleteData) ; |
---|
57 | tmp=domain_hdl->bounds_lon.getInheritedValue() ; |
---|
58 | CTimer::get("XIOS").suspend(); |
---|
59 | } |
---|
60 | |
---|
61 | bool cxios_is_defined_domain_bounds_lon(domain_Ptr domain_hdl ) |
---|
62 | { |
---|
63 | CTimer::get("XIOS").resume(); |
---|
64 | return domain_hdl->bounds_lon.hasInheritedValue(); |
---|
65 | CTimer::get("XIOS").suspend(); |
---|
66 | } |
---|
67 | |
---|
68 | |
---|
69 | |
---|
70 | void cxios_set_domain_data_dim(domain_Ptr domain_hdl, int data_dim) |
---|
71 | { |
---|
72 | CTimer::get("XIOS").resume(); |
---|
73 | domain_hdl->data_dim.setValue(data_dim); |
---|
74 | CTimer::get("XIOS").suspend(); |
---|
75 | } |
---|
76 | |
---|
77 | void cxios_get_domain_data_dim(domain_Ptr domain_hdl, int* data_dim) |
---|
78 | { |
---|
79 | *data_dim = domain_hdl->data_dim.getInheritedValue(); |
---|
80 | } |
---|
81 | |
---|
82 | bool cxios_is_defined_domain_data_dim(domain_Ptr domain_hdl ) |
---|
83 | { |
---|
84 | CTimer::get("XIOS").resume(); |
---|
85 | return domain_hdl->data_dim.hasInheritedValue(); |
---|
86 | CTimer::get("XIOS").suspend(); |
---|
87 | } |
---|
88 | |
---|
89 | |
---|
90 | |
---|
91 | void cxios_set_domain_data_i_index(domain_Ptr domain_hdl, int* data_i_index, int extent1) |
---|
92 | { |
---|
93 | CTimer::get("XIOS").resume(); |
---|
94 | CArray<int,1> tmp(data_i_index,shape(extent1),neverDeleteData) ; |
---|
95 | domain_hdl->data_i_index.reference(tmp.copy()); |
---|
96 | CTimer::get("XIOS").suspend(); |
---|
97 | } |
---|
98 | |
---|
99 | void cxios_get_domain_data_i_index(domain_Ptr domain_hdl, int* data_i_index, int extent1) |
---|
100 | { |
---|
101 | CTimer::get("XIOS").resume(); |
---|
102 | CArray<int,1> tmp(data_i_index,shape(extent1),neverDeleteData) ; |
---|
103 | tmp=domain_hdl->data_i_index.getInheritedValue() ; |
---|
104 | CTimer::get("XIOS").suspend(); |
---|
105 | } |
---|
106 | |
---|
107 | bool cxios_is_defined_domain_data_i_index(domain_Ptr domain_hdl ) |
---|
108 | { |
---|
109 | CTimer::get("XIOS").resume(); |
---|
110 | return domain_hdl->data_i_index.hasInheritedValue(); |
---|
111 | CTimer::get("XIOS").suspend(); |
---|
112 | } |
---|
113 | |
---|
114 | |
---|
115 | |
---|
116 | void cxios_set_domain_data_ibegin(domain_Ptr domain_hdl, int data_ibegin) |
---|
117 | { |
---|
118 | CTimer::get("XIOS").resume(); |
---|
119 | domain_hdl->data_ibegin.setValue(data_ibegin); |
---|
120 | CTimer::get("XIOS").suspend(); |
---|
121 | } |
---|
122 | |
---|
123 | void cxios_get_domain_data_ibegin(domain_Ptr domain_hdl, int* data_ibegin) |
---|
124 | { |
---|
125 | *data_ibegin = domain_hdl->data_ibegin.getInheritedValue(); |
---|
126 | } |
---|
127 | |
---|
128 | bool cxios_is_defined_domain_data_ibegin(domain_Ptr domain_hdl ) |
---|
129 | { |
---|
130 | CTimer::get("XIOS").resume(); |
---|
131 | return domain_hdl->data_ibegin.hasInheritedValue(); |
---|
132 | CTimer::get("XIOS").suspend(); |
---|
133 | } |
---|
134 | |
---|
135 | |
---|
136 | |
---|
137 | void cxios_set_domain_data_j_index(domain_Ptr domain_hdl, int* data_j_index, int extent1) |
---|
138 | { |
---|
139 | CTimer::get("XIOS").resume(); |
---|
140 | CArray<int,1> tmp(data_j_index,shape(extent1),neverDeleteData) ; |
---|
141 | domain_hdl->data_j_index.reference(tmp.copy()); |
---|
142 | CTimer::get("XIOS").suspend(); |
---|
143 | } |
---|
144 | |
---|
145 | void cxios_get_domain_data_j_index(domain_Ptr domain_hdl, int* data_j_index, int extent1) |
---|
146 | { |
---|
147 | CTimer::get("XIOS").resume(); |
---|
148 | CArray<int,1> tmp(data_j_index,shape(extent1),neverDeleteData) ; |
---|
149 | tmp=domain_hdl->data_j_index.getInheritedValue() ; |
---|
150 | CTimer::get("XIOS").suspend(); |
---|
151 | } |
---|
152 | |
---|
153 | bool cxios_is_defined_domain_data_j_index(domain_Ptr domain_hdl ) |
---|
154 | { |
---|
155 | CTimer::get("XIOS").resume(); |
---|
156 | return domain_hdl->data_j_index.hasInheritedValue(); |
---|
157 | CTimer::get("XIOS").suspend(); |
---|
158 | } |
---|
159 | |
---|
160 | |
---|
161 | |
---|
162 | void cxios_set_domain_data_jbegin(domain_Ptr domain_hdl, int data_jbegin) |
---|
163 | { |
---|
164 | CTimer::get("XIOS").resume(); |
---|
165 | domain_hdl->data_jbegin.setValue(data_jbegin); |
---|
166 | CTimer::get("XIOS").suspend(); |
---|
167 | } |
---|
168 | |
---|
169 | void cxios_get_domain_data_jbegin(domain_Ptr domain_hdl, int* data_jbegin) |
---|
170 | { |
---|
171 | *data_jbegin = domain_hdl->data_jbegin.getInheritedValue(); |
---|
172 | } |
---|
173 | |
---|
174 | bool cxios_is_defined_domain_data_jbegin(domain_Ptr domain_hdl ) |
---|
175 | { |
---|
176 | CTimer::get("XIOS").resume(); |
---|
177 | return domain_hdl->data_jbegin.hasInheritedValue(); |
---|
178 | CTimer::get("XIOS").suspend(); |
---|
179 | } |
---|
180 | |
---|
181 | |
---|
182 | |
---|
183 | void cxios_set_domain_data_n_index(domain_Ptr domain_hdl, int data_n_index) |
---|
184 | { |
---|
185 | CTimer::get("XIOS").resume(); |
---|
186 | domain_hdl->data_n_index.setValue(data_n_index); |
---|
187 | CTimer::get("XIOS").suspend(); |
---|
188 | } |
---|
189 | |
---|
190 | void cxios_get_domain_data_n_index(domain_Ptr domain_hdl, int* data_n_index) |
---|
191 | { |
---|
192 | *data_n_index = domain_hdl->data_n_index.getInheritedValue(); |
---|
193 | } |
---|
194 | |
---|
195 | bool cxios_is_defined_domain_data_n_index(domain_Ptr domain_hdl ) |
---|
196 | { |
---|
197 | CTimer::get("XIOS").resume(); |
---|
198 | return domain_hdl->data_n_index.hasInheritedValue(); |
---|
199 | CTimer::get("XIOS").suspend(); |
---|
200 | } |
---|
201 | |
---|
202 | |
---|
203 | |
---|
204 | void cxios_set_domain_data_ni(domain_Ptr domain_hdl, int data_ni) |
---|
205 | { |
---|
206 | CTimer::get("XIOS").resume(); |
---|
207 | domain_hdl->data_ni.setValue(data_ni); |
---|
208 | CTimer::get("XIOS").suspend(); |
---|
209 | } |
---|
210 | |
---|
211 | void cxios_get_domain_data_ni(domain_Ptr domain_hdl, int* data_ni) |
---|
212 | { |
---|
213 | *data_ni = domain_hdl->data_ni.getInheritedValue(); |
---|
214 | } |
---|
215 | |
---|
216 | bool cxios_is_defined_domain_data_ni(domain_Ptr domain_hdl ) |
---|
217 | { |
---|
218 | CTimer::get("XIOS").resume(); |
---|
219 | return domain_hdl->data_ni.hasInheritedValue(); |
---|
220 | CTimer::get("XIOS").suspend(); |
---|
221 | } |
---|
222 | |
---|
223 | |
---|
224 | |
---|
225 | void cxios_set_domain_data_nj(domain_Ptr domain_hdl, int data_nj) |
---|
226 | { |
---|
227 | CTimer::get("XIOS").resume(); |
---|
228 | domain_hdl->data_nj.setValue(data_nj); |
---|
229 | CTimer::get("XIOS").suspend(); |
---|
230 | } |
---|
231 | |
---|
232 | void cxios_get_domain_data_nj(domain_Ptr domain_hdl, int* data_nj) |
---|
233 | { |
---|
234 | *data_nj = domain_hdl->data_nj.getInheritedValue(); |
---|
235 | } |
---|
236 | |
---|
237 | bool cxios_is_defined_domain_data_nj(domain_Ptr domain_hdl ) |
---|
238 | { |
---|
239 | CTimer::get("XIOS").resume(); |
---|
240 | return domain_hdl->data_nj.hasInheritedValue(); |
---|
241 | CTimer::get("XIOS").suspend(); |
---|
242 | } |
---|
243 | |
---|
244 | |
---|
245 | |
---|
246 | void cxios_set_domain_domain_group_ref(domain_Ptr domain_hdl, const char * domain_group_ref, int domain_group_ref_size) |
---|
247 | { |
---|
248 | std::string domain_group_ref_str; |
---|
249 | if(!cstr2string(domain_group_ref, domain_group_ref_size, domain_group_ref_str)) return; |
---|
250 | CTimer::get("XIOS").resume(); |
---|
251 | domain_hdl->domain_group_ref.setValue(domain_group_ref_str); |
---|
252 | CTimer::get("XIOS").suspend(); |
---|
253 | } |
---|
254 | |
---|
255 | void cxios_get_domain_domain_group_ref(domain_Ptr domain_hdl, char * domain_group_ref, int domain_group_ref_size) |
---|
256 | { |
---|
257 | CTimer::get("XIOS").resume(); |
---|
258 | if(!string_copy(domain_hdl->domain_group_ref.getInheritedValue(),domain_group_ref , domain_group_ref_size)) |
---|
259 | ERROR("void cxios_get_domain_domain_group_ref(domain_Ptr domain_hdl, char * domain_group_ref, int domain_group_ref_size)", <<"Input string is to short"); |
---|
260 | CTimer::get("XIOS").suspend(); |
---|
261 | } |
---|
262 | |
---|
263 | bool cxios_is_defined_domain_domain_group_ref(domain_Ptr domain_hdl ) |
---|
264 | { |
---|
265 | CTimer::get("XIOS").resume(); |
---|
266 | return domain_hdl->domain_group_ref.hasInheritedValue(); |
---|
267 | CTimer::get("XIOS").suspend(); |
---|
268 | } |
---|
269 | |
---|
270 | |
---|
271 | |
---|
272 | void cxios_set_domain_domain_ref(domain_Ptr domain_hdl, const char * domain_ref, int domain_ref_size) |
---|
273 | { |
---|
274 | std::string domain_ref_str; |
---|
275 | if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; |
---|
276 | CTimer::get("XIOS").resume(); |
---|
277 | domain_hdl->domain_ref.setValue(domain_ref_str); |
---|
278 | CTimer::get("XIOS").suspend(); |
---|
279 | } |
---|
280 | |
---|
281 | void cxios_get_domain_domain_ref(domain_Ptr domain_hdl, char * domain_ref, int domain_ref_size) |
---|
282 | { |
---|
283 | CTimer::get("XIOS").resume(); |
---|
284 | if(!string_copy(domain_hdl->domain_ref.getInheritedValue(),domain_ref , domain_ref_size)) |
---|
285 | ERROR("void cxios_get_domain_domain_ref(domain_Ptr domain_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); |
---|
286 | CTimer::get("XIOS").suspend(); |
---|
287 | } |
---|
288 | |
---|
289 | bool cxios_is_defined_domain_domain_ref(domain_Ptr domain_hdl ) |
---|
290 | { |
---|
291 | CTimer::get("XIOS").resume(); |
---|
292 | return domain_hdl->domain_ref.hasInheritedValue(); |
---|
293 | CTimer::get("XIOS").suspend(); |
---|
294 | } |
---|
295 | |
---|
296 | |
---|
297 | |
---|
298 | void cxios_set_domain_i_index(domain_Ptr domain_hdl, int* i_index, int extent1, int extent2) |
---|
299 | { |
---|
300 | CTimer::get("XIOS").resume(); |
---|
301 | CArray<int,2> tmp(i_index,shape(extent1,extent2),neverDeleteData) ; |
---|
302 | domain_hdl->i_index.reference(tmp.copy()); |
---|
303 | CTimer::get("XIOS").suspend(); |
---|
304 | } |
---|
305 | |
---|
306 | void cxios_get_domain_i_index(domain_Ptr domain_hdl, int* i_index, int extent1, int extent2) |
---|
307 | { |
---|
308 | CTimer::get("XIOS").resume(); |
---|
309 | CArray<int,2> tmp(i_index,shape(extent1,extent2),neverDeleteData) ; |
---|
310 | tmp=domain_hdl->i_index.getInheritedValue() ; |
---|
311 | CTimer::get("XIOS").suspend(); |
---|
312 | } |
---|
313 | |
---|
314 | bool cxios_is_defined_domain_i_index(domain_Ptr domain_hdl ) |
---|
315 | { |
---|
316 | CTimer::get("XIOS").resume(); |
---|
317 | return domain_hdl->i_index.hasInheritedValue(); |
---|
318 | CTimer::get("XIOS").suspend(); |
---|
319 | } |
---|
320 | |
---|
321 | |
---|
322 | |
---|
323 | void cxios_set_domain_ibegin(domain_Ptr domain_hdl, int ibegin) |
---|
324 | { |
---|
325 | CTimer::get("XIOS").resume(); |
---|
326 | domain_hdl->ibegin.setValue(ibegin); |
---|
327 | CTimer::get("XIOS").suspend(); |
---|
328 | } |
---|
329 | |
---|
330 | void cxios_get_domain_ibegin(domain_Ptr domain_hdl, int* ibegin) |
---|
331 | { |
---|
332 | *ibegin = domain_hdl->ibegin.getInheritedValue(); |
---|
333 | } |
---|
334 | |
---|
335 | bool cxios_is_defined_domain_ibegin(domain_Ptr domain_hdl ) |
---|
336 | { |
---|
337 | CTimer::get("XIOS").resume(); |
---|
338 | return domain_hdl->ibegin.hasInheritedValue(); |
---|
339 | CTimer::get("XIOS").suspend(); |
---|
340 | } |
---|
341 | |
---|
342 | |
---|
343 | |
---|
344 | void cxios_set_domain_iend(domain_Ptr domain_hdl, int iend) |
---|
345 | { |
---|
346 | CTimer::get("XIOS").resume(); |
---|
347 | domain_hdl->iend.setValue(iend); |
---|
348 | CTimer::get("XIOS").suspend(); |
---|
349 | } |
---|
350 | |
---|
351 | void cxios_get_domain_iend(domain_Ptr domain_hdl, int* iend) |
---|
352 | { |
---|
353 | *iend = domain_hdl->iend.getInheritedValue(); |
---|
354 | } |
---|
355 | |
---|
356 | bool cxios_is_defined_domain_iend(domain_Ptr domain_hdl ) |
---|
357 | { |
---|
358 | CTimer::get("XIOS").resume(); |
---|
359 | return domain_hdl->iend.hasInheritedValue(); |
---|
360 | CTimer::get("XIOS").suspend(); |
---|
361 | } |
---|
362 | |
---|
363 | |
---|
364 | |
---|
365 | void cxios_set_domain_j_index(domain_Ptr domain_hdl, int* j_index, int extent1, int extent2) |
---|
366 | { |
---|
367 | CTimer::get("XIOS").resume(); |
---|
368 | CArray<int,2> tmp(j_index,shape(extent1,extent2),neverDeleteData) ; |
---|
369 | domain_hdl->j_index.reference(tmp.copy()); |
---|
370 | CTimer::get("XIOS").suspend(); |
---|
371 | } |
---|
372 | |
---|
373 | void cxios_get_domain_j_index(domain_Ptr domain_hdl, int* j_index, int extent1, int extent2) |
---|
374 | { |
---|
375 | CTimer::get("XIOS").resume(); |
---|
376 | CArray<int,2> tmp(j_index,shape(extent1,extent2),neverDeleteData) ; |
---|
377 | tmp=domain_hdl->j_index.getInheritedValue() ; |
---|
378 | CTimer::get("XIOS").suspend(); |
---|
379 | } |
---|
380 | |
---|
381 | bool cxios_is_defined_domain_j_index(domain_Ptr domain_hdl ) |
---|
382 | { |
---|
383 | CTimer::get("XIOS").resume(); |
---|
384 | return domain_hdl->j_index.hasInheritedValue(); |
---|
385 | CTimer::get("XIOS").suspend(); |
---|
386 | } |
---|
387 | |
---|
388 | |
---|
389 | |
---|
390 | void cxios_set_domain_jbegin(domain_Ptr domain_hdl, int jbegin) |
---|
391 | { |
---|
392 | CTimer::get("XIOS").resume(); |
---|
393 | domain_hdl->jbegin.setValue(jbegin); |
---|
394 | CTimer::get("XIOS").suspend(); |
---|
395 | } |
---|
396 | |
---|
397 | void cxios_get_domain_jbegin(domain_Ptr domain_hdl, int* jbegin) |
---|
398 | { |
---|
399 | *jbegin = domain_hdl->jbegin.getInheritedValue(); |
---|
400 | } |
---|
401 | |
---|
402 | bool cxios_is_defined_domain_jbegin(domain_Ptr domain_hdl ) |
---|
403 | { |
---|
404 | CTimer::get("XIOS").resume(); |
---|
405 | return domain_hdl->jbegin.hasInheritedValue(); |
---|
406 | CTimer::get("XIOS").suspend(); |
---|
407 | } |
---|
408 | |
---|
409 | |
---|
410 | |
---|
411 | void cxios_set_domain_jend(domain_Ptr domain_hdl, int jend) |
---|
412 | { |
---|
413 | CTimer::get("XIOS").resume(); |
---|
414 | domain_hdl->jend.setValue(jend); |
---|
415 | CTimer::get("XIOS").suspend(); |
---|
416 | } |
---|
417 | |
---|
418 | void cxios_get_domain_jend(domain_Ptr domain_hdl, int* jend) |
---|
419 | { |
---|
420 | *jend = domain_hdl->jend.getInheritedValue(); |
---|
421 | } |
---|
422 | |
---|
423 | bool cxios_is_defined_domain_jend(domain_Ptr domain_hdl ) |
---|
424 | { |
---|
425 | CTimer::get("XIOS").resume(); |
---|
426 | return domain_hdl->jend.hasInheritedValue(); |
---|
427 | CTimer::get("XIOS").suspend(); |
---|
428 | } |
---|
429 | |
---|
430 | |
---|
431 | |
---|
432 | void cxios_set_domain_latvalue(domain_Ptr domain_hdl, double* latvalue, int extent1) |
---|
433 | { |
---|
434 | CTimer::get("XIOS").resume(); |
---|
435 | CArray<double,1> tmp(latvalue,shape(extent1),neverDeleteData) ; |
---|
436 | domain_hdl->latvalue.reference(tmp.copy()); |
---|
437 | CTimer::get("XIOS").suspend(); |
---|
438 | } |
---|
439 | |
---|
440 | void cxios_get_domain_latvalue(domain_Ptr domain_hdl, double* latvalue, int extent1) |
---|
441 | { |
---|
442 | CTimer::get("XIOS").resume(); |
---|
443 | CArray<double,1> tmp(latvalue,shape(extent1),neverDeleteData) ; |
---|
444 | tmp=domain_hdl->latvalue.getInheritedValue() ; |
---|
445 | CTimer::get("XIOS").suspend(); |
---|
446 | } |
---|
447 | |
---|
448 | bool cxios_is_defined_domain_latvalue(domain_Ptr domain_hdl ) |
---|
449 | { |
---|
450 | CTimer::get("XIOS").resume(); |
---|
451 | return domain_hdl->latvalue.hasInheritedValue(); |
---|
452 | CTimer::get("XIOS").suspend(); |
---|
453 | } |
---|
454 | |
---|
455 | |
---|
456 | |
---|
457 | void cxios_set_domain_long_name(domain_Ptr domain_hdl, const char * long_name, int long_name_size) |
---|
458 | { |
---|
459 | std::string long_name_str; |
---|
460 | if(!cstr2string(long_name, long_name_size, long_name_str)) return; |
---|
461 | CTimer::get("XIOS").resume(); |
---|
462 | domain_hdl->long_name.setValue(long_name_str); |
---|
463 | CTimer::get("XIOS").suspend(); |
---|
464 | } |
---|
465 | |
---|
466 | void cxios_get_domain_long_name(domain_Ptr domain_hdl, char * long_name, int long_name_size) |
---|
467 | { |
---|
468 | CTimer::get("XIOS").resume(); |
---|
469 | if(!string_copy(domain_hdl->long_name.getInheritedValue(),long_name , long_name_size)) |
---|
470 | ERROR("void cxios_get_domain_long_name(domain_Ptr domain_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); |
---|
471 | CTimer::get("XIOS").suspend(); |
---|
472 | } |
---|
473 | |
---|
474 | bool cxios_is_defined_domain_long_name(domain_Ptr domain_hdl ) |
---|
475 | { |
---|
476 | CTimer::get("XIOS").resume(); |
---|
477 | return domain_hdl->long_name.hasInheritedValue(); |
---|
478 | CTimer::get("XIOS").suspend(); |
---|
479 | } |
---|
480 | |
---|
481 | |
---|
482 | |
---|
483 | void cxios_set_domain_lonvalue(domain_Ptr domain_hdl, double* lonvalue, int extent1) |
---|
484 | { |
---|
485 | CTimer::get("XIOS").resume(); |
---|
486 | CArray<double,1> tmp(lonvalue,shape(extent1),neverDeleteData) ; |
---|
487 | domain_hdl->lonvalue.reference(tmp.copy()); |
---|
488 | CTimer::get("XIOS").suspend(); |
---|
489 | } |
---|
490 | |
---|
491 | void cxios_get_domain_lonvalue(domain_Ptr domain_hdl, double* lonvalue, int extent1) |
---|
492 | { |
---|
493 | CTimer::get("XIOS").resume(); |
---|
494 | CArray<double,1> tmp(lonvalue,shape(extent1),neverDeleteData) ; |
---|
495 | tmp=domain_hdl->lonvalue.getInheritedValue() ; |
---|
496 | CTimer::get("XIOS").suspend(); |
---|
497 | } |
---|
498 | |
---|
499 | bool cxios_is_defined_domain_lonvalue(domain_Ptr domain_hdl ) |
---|
500 | { |
---|
501 | CTimer::get("XIOS").resume(); |
---|
502 | return domain_hdl->lonvalue.hasInheritedValue(); |
---|
503 | CTimer::get("XIOS").suspend(); |
---|
504 | } |
---|
505 | |
---|
506 | |
---|
507 | |
---|
508 | void cxios_set_domain_mask(domain_Ptr domain_hdl, bool* mask, int extent1, int extent2) |
---|
509 | { |
---|
510 | CTimer::get("XIOS").resume(); |
---|
511 | CArray<bool,2> tmp(mask,shape(extent1,extent2),neverDeleteData) ; |
---|
512 | domain_hdl->mask.reference(tmp.copy()); |
---|
513 | CTimer::get("XIOS").suspend(); |
---|
514 | } |
---|
515 | |
---|
516 | void cxios_get_domain_mask(domain_Ptr domain_hdl, bool* mask, int extent1, int extent2) |
---|
517 | { |
---|
518 | CTimer::get("XIOS").resume(); |
---|
519 | CArray<bool,2> tmp(mask,shape(extent1,extent2),neverDeleteData) ; |
---|
520 | tmp=domain_hdl->mask.getInheritedValue() ; |
---|
521 | CTimer::get("XIOS").suspend(); |
---|
522 | } |
---|
523 | |
---|
524 | bool cxios_is_defined_domain_mask(domain_Ptr domain_hdl ) |
---|
525 | { |
---|
526 | CTimer::get("XIOS").resume(); |
---|
527 | return domain_hdl->mask.hasInheritedValue(); |
---|
528 | CTimer::get("XIOS").suspend(); |
---|
529 | } |
---|
530 | |
---|
531 | |
---|
532 | |
---|
533 | void cxios_set_domain_name(domain_Ptr domain_hdl, const char * name, int name_size) |
---|
534 | { |
---|
535 | std::string name_str; |
---|
536 | if(!cstr2string(name, name_size, name_str)) return; |
---|
537 | CTimer::get("XIOS").resume(); |
---|
538 | domain_hdl->name.setValue(name_str); |
---|
539 | CTimer::get("XIOS").suspend(); |
---|
540 | } |
---|
541 | |
---|
542 | void cxios_get_domain_name(domain_Ptr domain_hdl, char * name, int name_size) |
---|
543 | { |
---|
544 | CTimer::get("XIOS").resume(); |
---|
545 | if(!string_copy(domain_hdl->name.getInheritedValue(),name , name_size)) |
---|
546 | ERROR("void cxios_get_domain_name(domain_Ptr domain_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
547 | CTimer::get("XIOS").suspend(); |
---|
548 | } |
---|
549 | |
---|
550 | bool cxios_is_defined_domain_name(domain_Ptr domain_hdl ) |
---|
551 | { |
---|
552 | CTimer::get("XIOS").resume(); |
---|
553 | return domain_hdl->name.hasInheritedValue(); |
---|
554 | CTimer::get("XIOS").suspend(); |
---|
555 | } |
---|
556 | |
---|
557 | |
---|
558 | |
---|
559 | void cxios_set_domain_ni(domain_Ptr domain_hdl, int ni) |
---|
560 | { |
---|
561 | CTimer::get("XIOS").resume(); |
---|
562 | domain_hdl->ni.setValue(ni); |
---|
563 | CTimer::get("XIOS").suspend(); |
---|
564 | } |
---|
565 | |
---|
566 | void cxios_get_domain_ni(domain_Ptr domain_hdl, int* ni) |
---|
567 | { |
---|
568 | *ni = domain_hdl->ni.getInheritedValue(); |
---|
569 | } |
---|
570 | |
---|
571 | bool cxios_is_defined_domain_ni(domain_Ptr domain_hdl ) |
---|
572 | { |
---|
573 | CTimer::get("XIOS").resume(); |
---|
574 | return domain_hdl->ni.hasInheritedValue(); |
---|
575 | CTimer::get("XIOS").suspend(); |
---|
576 | } |
---|
577 | |
---|
578 | |
---|
579 | |
---|
580 | void cxios_set_domain_ni_glo(domain_Ptr domain_hdl, int ni_glo) |
---|
581 | { |
---|
582 | CTimer::get("XIOS").resume(); |
---|
583 | domain_hdl->ni_glo.setValue(ni_glo); |
---|
584 | CTimer::get("XIOS").suspend(); |
---|
585 | } |
---|
586 | |
---|
587 | void cxios_get_domain_ni_glo(domain_Ptr domain_hdl, int* ni_glo) |
---|
588 | { |
---|
589 | *ni_glo = domain_hdl->ni_glo.getInheritedValue(); |
---|
590 | } |
---|
591 | |
---|
592 | bool cxios_is_defined_domain_ni_glo(domain_Ptr domain_hdl ) |
---|
593 | { |
---|
594 | CTimer::get("XIOS").resume(); |
---|
595 | return domain_hdl->ni_glo.hasInheritedValue(); |
---|
596 | CTimer::get("XIOS").suspend(); |
---|
597 | } |
---|
598 | |
---|
599 | |
---|
600 | |
---|
601 | void cxios_set_domain_nj(domain_Ptr domain_hdl, int nj) |
---|
602 | { |
---|
603 | CTimer::get("XIOS").resume(); |
---|
604 | domain_hdl->nj.setValue(nj); |
---|
605 | CTimer::get("XIOS").suspend(); |
---|
606 | } |
---|
607 | |
---|
608 | void cxios_get_domain_nj(domain_Ptr domain_hdl, int* nj) |
---|
609 | { |
---|
610 | *nj = domain_hdl->nj.getInheritedValue(); |
---|
611 | } |
---|
612 | |
---|
613 | bool cxios_is_defined_domain_nj(domain_Ptr domain_hdl ) |
---|
614 | { |
---|
615 | CTimer::get("XIOS").resume(); |
---|
616 | return domain_hdl->nj.hasInheritedValue(); |
---|
617 | CTimer::get("XIOS").suspend(); |
---|
618 | } |
---|
619 | |
---|
620 | |
---|
621 | |
---|
622 | void cxios_set_domain_nj_glo(domain_Ptr domain_hdl, int nj_glo) |
---|
623 | { |
---|
624 | CTimer::get("XIOS").resume(); |
---|
625 | domain_hdl->nj_glo.setValue(nj_glo); |
---|
626 | CTimer::get("XIOS").suspend(); |
---|
627 | } |
---|
628 | |
---|
629 | void cxios_get_domain_nj_glo(domain_Ptr domain_hdl, int* nj_glo) |
---|
630 | { |
---|
631 | *nj_glo = domain_hdl->nj_glo.getInheritedValue(); |
---|
632 | } |
---|
633 | |
---|
634 | bool cxios_is_defined_domain_nj_glo(domain_Ptr domain_hdl ) |
---|
635 | { |
---|
636 | CTimer::get("XIOS").resume(); |
---|
637 | return domain_hdl->nj_glo.hasInheritedValue(); |
---|
638 | CTimer::get("XIOS").suspend(); |
---|
639 | } |
---|
640 | |
---|
641 | |
---|
642 | |
---|
643 | void cxios_set_domain_nvertex(domain_Ptr domain_hdl, int nvertex) |
---|
644 | { |
---|
645 | CTimer::get("XIOS").resume(); |
---|
646 | domain_hdl->nvertex.setValue(nvertex); |
---|
647 | CTimer::get("XIOS").suspend(); |
---|
648 | } |
---|
649 | |
---|
650 | void cxios_get_domain_nvertex(domain_Ptr domain_hdl, int* nvertex) |
---|
651 | { |
---|
652 | *nvertex = domain_hdl->nvertex.getInheritedValue(); |
---|
653 | } |
---|
654 | |
---|
655 | bool cxios_is_defined_domain_nvertex(domain_Ptr domain_hdl ) |
---|
656 | { |
---|
657 | CTimer::get("XIOS").resume(); |
---|
658 | return domain_hdl->nvertex.hasInheritedValue(); |
---|
659 | CTimer::get("XIOS").suspend(); |
---|
660 | } |
---|
661 | |
---|
662 | |
---|
663 | |
---|
664 | void cxios_set_domain_standard_name(domain_Ptr domain_hdl, const char * standard_name, int standard_name_size) |
---|
665 | { |
---|
666 | std::string standard_name_str; |
---|
667 | if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
668 | CTimer::get("XIOS").resume(); |
---|
669 | domain_hdl->standard_name.setValue(standard_name_str); |
---|
670 | CTimer::get("XIOS").suspend(); |
---|
671 | } |
---|
672 | |
---|
673 | void cxios_get_domain_standard_name(domain_Ptr domain_hdl, char * standard_name, int standard_name_size) |
---|
674 | { |
---|
675 | CTimer::get("XIOS").resume(); |
---|
676 | if(!string_copy(domain_hdl->standard_name.getInheritedValue(),standard_name , standard_name_size)) |
---|
677 | ERROR("void cxios_get_domain_standard_name(domain_Ptr domain_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); |
---|
678 | CTimer::get("XIOS").suspend(); |
---|
679 | } |
---|
680 | |
---|
681 | bool cxios_is_defined_domain_standard_name(domain_Ptr domain_hdl ) |
---|
682 | { |
---|
683 | CTimer::get("XIOS").resume(); |
---|
684 | return domain_hdl->standard_name.hasInheritedValue(); |
---|
685 | CTimer::get("XIOS").suspend(); |
---|
686 | } |
---|
687 | |
---|
688 | |
---|
689 | |
---|
690 | void cxios_set_domain_type(domain_Ptr domain_hdl, const char * type, int type_size) |
---|
691 | { |
---|
692 | std::string type_str; |
---|
693 | if(!cstr2string(type, type_size, type_str)) return; |
---|
694 | CTimer::get("XIOS").resume(); |
---|
695 | domain_hdl->type.fromString(type_str); |
---|
696 | CTimer::get("XIOS").suspend(); |
---|
697 | } |
---|
698 | |
---|
699 | void cxios_get_domain_type(domain_Ptr domain_hdl, char * type, int type_size) |
---|
700 | { |
---|
701 | CTimer::get("XIOS").resume(); |
---|
702 | if(!string_copy(domain_hdl->type.getInheritedStringValue(),type , type_size)) |
---|
703 | ERROR("void cxios_get_domain_type(domain_Ptr domain_hdl, char * type, int type_size)", <<"Input string is to short"); |
---|
704 | CTimer::get("XIOS").suspend(); |
---|
705 | } |
---|
706 | |
---|
707 | bool cxios_is_defined_domain_type(domain_Ptr domain_hdl ) |
---|
708 | { |
---|
709 | CTimer::get("XIOS").resume(); |
---|
710 | return domain_hdl->type.hasInheritedValue(); |
---|
711 | CTimer::get("XIOS").suspend(); |
---|
712 | } |
---|
713 | |
---|
714 | |
---|
715 | |
---|
716 | void cxios_set_domain_zoom_ibegin(domain_Ptr domain_hdl, int zoom_ibegin) |
---|
717 | { |
---|
718 | CTimer::get("XIOS").resume(); |
---|
719 | domain_hdl->zoom_ibegin.setValue(zoom_ibegin); |
---|
720 | CTimer::get("XIOS").suspend(); |
---|
721 | } |
---|
722 | |
---|
723 | void cxios_get_domain_zoom_ibegin(domain_Ptr domain_hdl, int* zoom_ibegin) |
---|
724 | { |
---|
725 | *zoom_ibegin = domain_hdl->zoom_ibegin.getInheritedValue(); |
---|
726 | } |
---|
727 | |
---|
728 | bool cxios_is_defined_domain_zoom_ibegin(domain_Ptr domain_hdl ) |
---|
729 | { |
---|
730 | CTimer::get("XIOS").resume(); |
---|
731 | return domain_hdl->zoom_ibegin.hasInheritedValue(); |
---|
732 | CTimer::get("XIOS").suspend(); |
---|
733 | } |
---|
734 | |
---|
735 | |
---|
736 | |
---|
737 | void cxios_set_domain_zoom_ibegin_loc(domain_Ptr domain_hdl, int zoom_ibegin_loc) |
---|
738 | { |
---|
739 | CTimer::get("XIOS").resume(); |
---|
740 | domain_hdl->zoom_ibegin_loc.setValue(zoom_ibegin_loc); |
---|
741 | CTimer::get("XIOS").suspend(); |
---|
742 | } |
---|
743 | |
---|
744 | void cxios_get_domain_zoom_ibegin_loc(domain_Ptr domain_hdl, int* zoom_ibegin_loc) |
---|
745 | { |
---|
746 | *zoom_ibegin_loc = domain_hdl->zoom_ibegin_loc.getInheritedValue(); |
---|
747 | } |
---|
748 | |
---|
749 | bool cxios_is_defined_domain_zoom_ibegin_loc(domain_Ptr domain_hdl ) |
---|
750 | { |
---|
751 | CTimer::get("XIOS").resume(); |
---|
752 | return domain_hdl->zoom_ibegin_loc.hasInheritedValue(); |
---|
753 | CTimer::get("XIOS").suspend(); |
---|
754 | } |
---|
755 | |
---|
756 | |
---|
757 | |
---|
758 | void cxios_set_domain_zoom_jbegin(domain_Ptr domain_hdl, int zoom_jbegin) |
---|
759 | { |
---|
760 | CTimer::get("XIOS").resume(); |
---|
761 | domain_hdl->zoom_jbegin.setValue(zoom_jbegin); |
---|
762 | CTimer::get("XIOS").suspend(); |
---|
763 | } |
---|
764 | |
---|
765 | void cxios_get_domain_zoom_jbegin(domain_Ptr domain_hdl, int* zoom_jbegin) |
---|
766 | { |
---|
767 | *zoom_jbegin = domain_hdl->zoom_jbegin.getInheritedValue(); |
---|
768 | } |
---|
769 | |
---|
770 | bool cxios_is_defined_domain_zoom_jbegin(domain_Ptr domain_hdl ) |
---|
771 | { |
---|
772 | CTimer::get("XIOS").resume(); |
---|
773 | return domain_hdl->zoom_jbegin.hasInheritedValue(); |
---|
774 | CTimer::get("XIOS").suspend(); |
---|
775 | } |
---|
776 | |
---|
777 | |
---|
778 | |
---|
779 | void cxios_set_domain_zoom_jbegin_loc(domain_Ptr domain_hdl, int zoom_jbegin_loc) |
---|
780 | { |
---|
781 | CTimer::get("XIOS").resume(); |
---|
782 | domain_hdl->zoom_jbegin_loc.setValue(zoom_jbegin_loc); |
---|
783 | CTimer::get("XIOS").suspend(); |
---|
784 | } |
---|
785 | |
---|
786 | void cxios_get_domain_zoom_jbegin_loc(domain_Ptr domain_hdl, int* zoom_jbegin_loc) |
---|
787 | { |
---|
788 | *zoom_jbegin_loc = domain_hdl->zoom_jbegin_loc.getInheritedValue(); |
---|
789 | } |
---|
790 | |
---|
791 | bool cxios_is_defined_domain_zoom_jbegin_loc(domain_Ptr domain_hdl ) |
---|
792 | { |
---|
793 | CTimer::get("XIOS").resume(); |
---|
794 | return domain_hdl->zoom_jbegin_loc.hasInheritedValue(); |
---|
795 | CTimer::get("XIOS").suspend(); |
---|
796 | } |
---|
797 | |
---|
798 | |
---|
799 | |
---|
800 | void cxios_set_domain_zoom_ni(domain_Ptr domain_hdl, int zoom_ni) |
---|
801 | { |
---|
802 | CTimer::get("XIOS").resume(); |
---|
803 | domain_hdl->zoom_ni.setValue(zoom_ni); |
---|
804 | CTimer::get("XIOS").suspend(); |
---|
805 | } |
---|
806 | |
---|
807 | void cxios_get_domain_zoom_ni(domain_Ptr domain_hdl, int* zoom_ni) |
---|
808 | { |
---|
809 | *zoom_ni = domain_hdl->zoom_ni.getInheritedValue(); |
---|
810 | } |
---|
811 | |
---|
812 | bool cxios_is_defined_domain_zoom_ni(domain_Ptr domain_hdl ) |
---|
813 | { |
---|
814 | CTimer::get("XIOS").resume(); |
---|
815 | return domain_hdl->zoom_ni.hasInheritedValue(); |
---|
816 | CTimer::get("XIOS").suspend(); |
---|
817 | } |
---|
818 | |
---|
819 | |
---|
820 | |
---|
821 | void cxios_set_domain_zoom_ni_loc(domain_Ptr domain_hdl, int zoom_ni_loc) |
---|
822 | { |
---|
823 | CTimer::get("XIOS").resume(); |
---|
824 | domain_hdl->zoom_ni_loc.setValue(zoom_ni_loc); |
---|
825 | CTimer::get("XIOS").suspend(); |
---|
826 | } |
---|
827 | |
---|
828 | void cxios_get_domain_zoom_ni_loc(domain_Ptr domain_hdl, int* zoom_ni_loc) |
---|
829 | { |
---|
830 | *zoom_ni_loc = domain_hdl->zoom_ni_loc.getInheritedValue(); |
---|
831 | } |
---|
832 | |
---|
833 | bool cxios_is_defined_domain_zoom_ni_loc(domain_Ptr domain_hdl ) |
---|
834 | { |
---|
835 | CTimer::get("XIOS").resume(); |
---|
836 | return domain_hdl->zoom_ni_loc.hasInheritedValue(); |
---|
837 | CTimer::get("XIOS").suspend(); |
---|
838 | } |
---|
839 | |
---|
840 | |
---|
841 | |
---|
842 | void cxios_set_domain_zoom_nj(domain_Ptr domain_hdl, int zoom_nj) |
---|
843 | { |
---|
844 | CTimer::get("XIOS").resume(); |
---|
845 | domain_hdl->zoom_nj.setValue(zoom_nj); |
---|
846 | CTimer::get("XIOS").suspend(); |
---|
847 | } |
---|
848 | |
---|
849 | void cxios_get_domain_zoom_nj(domain_Ptr domain_hdl, int* zoom_nj) |
---|
850 | { |
---|
851 | *zoom_nj = domain_hdl->zoom_nj.getInheritedValue(); |
---|
852 | } |
---|
853 | |
---|
854 | bool cxios_is_defined_domain_zoom_nj(domain_Ptr domain_hdl ) |
---|
855 | { |
---|
856 | CTimer::get("XIOS").resume(); |
---|
857 | return domain_hdl->zoom_nj.hasInheritedValue(); |
---|
858 | CTimer::get("XIOS").suspend(); |
---|
859 | } |
---|
860 | |
---|
861 | |
---|
862 | |
---|
863 | void cxios_set_domain_zoom_nj_loc(domain_Ptr domain_hdl, int zoom_nj_loc) |
---|
864 | { |
---|
865 | CTimer::get("XIOS").resume(); |
---|
866 | domain_hdl->zoom_nj_loc.setValue(zoom_nj_loc); |
---|
867 | CTimer::get("XIOS").suspend(); |
---|
868 | } |
---|
869 | |
---|
870 | void cxios_get_domain_zoom_nj_loc(domain_Ptr domain_hdl, int* zoom_nj_loc) |
---|
871 | { |
---|
872 | *zoom_nj_loc = domain_hdl->zoom_nj_loc.getInheritedValue(); |
---|
873 | } |
---|
874 | |
---|
875 | bool cxios_is_defined_domain_zoom_nj_loc(domain_Ptr domain_hdl ) |
---|
876 | { |
---|
877 | CTimer::get("XIOS").resume(); |
---|
878 | return domain_hdl->zoom_nj_loc.hasInheritedValue(); |
---|
879 | CTimer::get("XIOS").suspend(); |
---|
880 | } |
---|
881 | |
---|
882 | |
---|
883 | |
---|
884 | |
---|
885 | } |
---|