source: XIOS3/trunk/src/interface/c_attr/icredistribute_domain_attr.cpp

Last change on this file was 2629, checked in by jderouillat, 3 months ago

Delete boost dependencies, the few features used are replaced by functions stored in extern/boost_extraction

File size: 3.3 KB
Line 
1/* ************************************************************************** *
2 *               Interface auto generated - do not modify                     *
3 * ************************************************************************** */
4
5#include "xios.hpp"
6#include "attribute_template.hpp"
7#include "object_template.hpp"
8#include "group_template.hpp"
9#include "icutil.hpp"
10#include "icdate.hpp"
11#include "timer.hpp"
12#include "node_type.hpp"
13
14extern "C"
15{
16  typedef xios::CRedistributeDomain* redistribute_domain_Ptr;
17
18  void cxios_set_redistribute_domain_index(redistribute_domain_Ptr redistribute_domain_hdl, int* index, int* extent)
19  {
20    CTimer::get("XIOS").resume();
21    CArray<int,1> tmp(index, shape(extent[0]), neverDeleteData);
22    redistribute_domain_hdl->index.reference(tmp.copy());
23     CTimer::get("XIOS").suspend();
24  }
25
26  void cxios_get_redistribute_domain_index(redistribute_domain_Ptr redistribute_domain_hdl, int* index, int* extent)
27  {
28    CTimer::get("XIOS").resume();
29    CArray<int,1> tmp(index, shape(extent[0]), neverDeleteData);
30    tmp=redistribute_domain_hdl->index.getInheritedValue();
31     CTimer::get("XIOS").suspend();
32  }
33
34  bool cxios_is_defined_redistribute_domain_index(redistribute_domain_Ptr redistribute_domain_hdl)
35  {
36     CTimer::get("XIOS").resume();
37     bool isDefined = redistribute_domain_hdl->index.hasInheritedValue();
38     CTimer::get("XIOS").suspend();
39     return isDefined;
40  }
41
42
43  void cxios_set_redistribute_domain_mask(redistribute_domain_Ptr redistribute_domain_hdl, bool* mask, int* extent)
44  {
45    CTimer::get("XIOS").resume();
46    CArray<bool,1> tmp(mask, shape(extent[0]), neverDeleteData);
47    redistribute_domain_hdl->mask.reference(tmp.copy());
48     CTimer::get("XIOS").suspend();
49  }
50
51  void cxios_get_redistribute_domain_mask(redistribute_domain_Ptr redistribute_domain_hdl, bool* mask, int* extent)
52  {
53    CTimer::get("XIOS").resume();
54    CArray<bool,1> tmp(mask, shape(extent[0]), neverDeleteData);
55    tmp=redistribute_domain_hdl->mask.getInheritedValue();
56     CTimer::get("XIOS").suspend();
57  }
58
59  bool cxios_is_defined_redistribute_domain_mask(redistribute_domain_Ptr redistribute_domain_hdl)
60  {
61     CTimer::get("XIOS").resume();
62     bool isDefined = redistribute_domain_hdl->mask.hasInheritedValue();
63     CTimer::get("XIOS").suspend();
64     return isDefined;
65  }
66
67
68  void cxios_set_redistribute_domain_type(redistribute_domain_Ptr redistribute_domain_hdl, const char * type, int type_size)
69  {
70    std::string type_str;
71    if (!cstr2string(type, type_size, type_str)) return;
72    CTimer::get("XIOS").resume();
73    redistribute_domain_hdl->type.fromString(type_str);
74    CTimer::get("XIOS").suspend();
75  }
76
77  void cxios_get_redistribute_domain_type(redistribute_domain_Ptr redistribute_domain_hdl, char * type, int type_size)
78  {
79    CTimer::get("XIOS").resume();
80    if (!string_copy(redistribute_domain_hdl->type.getInheritedStringValue(), type, type_size))
81      ERROR("void cxios_get_redistribute_domain_type(redistribute_domain_Ptr redistribute_domain_hdl, char * type, int type_size)", << "Input string is too short");
82    CTimer::get("XIOS").suspend();
83  }
84
85  bool cxios_is_defined_redistribute_domain_type(redistribute_domain_Ptr redistribute_domain_hdl)
86  {
87     CTimer::get("XIOS").resume();
88     bool isDefined = redistribute_domain_hdl->type.hasInheritedValue();
89     CTimer::get("XIOS").suspend();
90     return isDefined;
91  }
92}
Note: See TracBrowser for help on using the repository browser.