[934] | 1 | /* ************************************************************************** * |
---|
| 2 | * Interface auto generated - do not modify * |
---|
| 3 | * ************************************************************************** */ |
---|
| 4 | |
---|
| 5 | #include <boost/multi_array.hpp> |
---|
| 6 | #include <boost/shared_ptr.hpp> |
---|
| 7 | #include "xios.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::CComputeConnectivityDomain* compute_connectivity_domain_Ptr; |
---|
| 19 | |
---|
| 20 | void cxios_set_compute_connectivity_domain_local_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int* local_neighbor, int* extent) |
---|
| 21 | { |
---|
| 22 | CTimer::get("XIOS").resume(); |
---|
| 23 | CArray<int,2> tmp(local_neighbor, shape(extent[0], extent[1]), neverDeleteData); |
---|
| 24 | compute_connectivity_domain_hdl->local_neighbor.reference(tmp.copy()); |
---|
| 25 | CTimer::get("XIOS").suspend(); |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | void cxios_get_compute_connectivity_domain_local_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int* local_neighbor, int* extent) |
---|
| 29 | { |
---|
| 30 | CTimer::get("XIOS").resume(); |
---|
| 31 | CArray<int,2> tmp(local_neighbor, shape(extent[0], extent[1]), neverDeleteData); |
---|
| 32 | tmp=compute_connectivity_domain_hdl->local_neighbor.getInheritedValue(); |
---|
| 33 | CTimer::get("XIOS").suspend(); |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | bool cxios_is_defined_compute_connectivity_domain_local_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl) |
---|
| 37 | { |
---|
| 38 | CTimer::get("XIOS").resume(); |
---|
| 39 | bool isDefined = compute_connectivity_domain_hdl->local_neighbor.hasInheritedValue(); |
---|
| 40 | CTimer::get("XIOS").suspend(); |
---|
| 41 | return isDefined; |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | void cxios_set_compute_connectivity_domain_n_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int* n_neighbor, int* extent) |
---|
| 46 | { |
---|
| 47 | CTimer::get("XIOS").resume(); |
---|
| 48 | CArray<int,1> tmp(n_neighbor, shape(extent[0]), neverDeleteData); |
---|
| 49 | compute_connectivity_domain_hdl->n_neighbor.reference(tmp.copy()); |
---|
| 50 | CTimer::get("XIOS").suspend(); |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | void cxios_get_compute_connectivity_domain_n_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int* n_neighbor, int* extent) |
---|
| 54 | { |
---|
| 55 | CTimer::get("XIOS").resume(); |
---|
| 56 | CArray<int,1> tmp(n_neighbor, shape(extent[0]), neverDeleteData); |
---|
| 57 | tmp=compute_connectivity_domain_hdl->n_neighbor.getInheritedValue(); |
---|
| 58 | CTimer::get("XIOS").suspend(); |
---|
| 59 | } |
---|
| 60 | |
---|
| 61 | bool cxios_is_defined_compute_connectivity_domain_n_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl) |
---|
| 62 | { |
---|
| 63 | CTimer::get("XIOS").resume(); |
---|
| 64 | bool isDefined = compute_connectivity_domain_hdl->n_neighbor.hasInheritedValue(); |
---|
| 65 | CTimer::get("XIOS").suspend(); |
---|
| 66 | return isDefined; |
---|
| 67 | } |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | void cxios_set_compute_connectivity_domain_n_neighbor_max(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int n_neighbor_max) |
---|
| 71 | { |
---|
| 72 | CTimer::get("XIOS").resume(); |
---|
| 73 | compute_connectivity_domain_hdl->n_neighbor_max.setValue(n_neighbor_max); |
---|
| 74 | CTimer::get("XIOS").suspend(); |
---|
| 75 | } |
---|
| 76 | |
---|
| 77 | void cxios_get_compute_connectivity_domain_n_neighbor_max(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int* n_neighbor_max) |
---|
| 78 | { |
---|
| 79 | CTimer::get("XIOS").resume(); |
---|
| 80 | *n_neighbor_max = compute_connectivity_domain_hdl->n_neighbor_max.getInheritedValue(); |
---|
| 81 | CTimer::get("XIOS").suspend(); |
---|
| 82 | } |
---|
| 83 | |
---|
| 84 | bool cxios_is_defined_compute_connectivity_domain_n_neighbor_max(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl) |
---|
| 85 | { |
---|
| 86 | CTimer::get("XIOS").resume(); |
---|
| 87 | bool isDefined = compute_connectivity_domain_hdl->n_neighbor_max.hasInheritedValue(); |
---|
| 88 | CTimer::get("XIOS").suspend(); |
---|
| 89 | return isDefined; |
---|
| 90 | } |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | void cxios_set_compute_connectivity_domain_type(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, const char * type, int type_size) |
---|
| 94 | { |
---|
| 95 | std::string type_str; |
---|
| 96 | if (!cstr2string(type, type_size, type_str)) return; |
---|
| 97 | CTimer::get("XIOS").resume(); |
---|
| 98 | compute_connectivity_domain_hdl->type.fromString(type_str); |
---|
| 99 | CTimer::get("XIOS").suspend(); |
---|
| 100 | } |
---|
| 101 | |
---|
| 102 | void cxios_get_compute_connectivity_domain_type(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, char * type, int type_size) |
---|
| 103 | { |
---|
| 104 | CTimer::get("XIOS").resume(); |
---|
| 105 | if (!string_copy(compute_connectivity_domain_hdl->type.getInheritedStringValue(), type, type_size)) |
---|
| 106 | ERROR("void cxios_get_compute_connectivity_domain_type(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, char * type, int type_size)", << "Input string is too short"); |
---|
| 107 | CTimer::get("XIOS").suspend(); |
---|
| 108 | } |
---|
| 109 | |
---|
| 110 | bool cxios_is_defined_compute_connectivity_domain_type(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl) |
---|
| 111 | { |
---|
| 112 | CTimer::get("XIOS").resume(); |
---|
| 113 | bool isDefined = compute_connectivity_domain_hdl->type.hasInheritedValue(); |
---|
| 114 | CTimer::get("XIOS").suspend(); |
---|
| 115 | return isDefined; |
---|
| 116 | } |
---|
| 117 | } |
---|