5 #include <boost/multi_array.hpp>
21 CTimer::get(
"XIOS").resume();
22 CArray<int,2> tmp(local_neighbor, shape(extent[0], extent[1]), neverDeleteData);
23 compute_connectivity_domain_hdl->local_neighbor.reference(tmp.
copy());
24 CTimer::get(
"XIOS").suspend();
29 CTimer::get(
"XIOS").resume();
30 CArray<int,2> tmp(local_neighbor, shape(extent[0], extent[1]), neverDeleteData);
31 tmp=compute_connectivity_domain_hdl->local_neighbor.getInheritedValue();
32 CTimer::get(
"XIOS").suspend();
37 CTimer::get(
"XIOS").resume();
38 bool isDefined = compute_connectivity_domain_hdl->local_neighbor.hasInheritedValue();
39 CTimer::get(
"XIOS").suspend();
46 CTimer::get(
"XIOS").resume();
47 CArray<int,1> tmp(n_neighbor, shape(extent[0]), neverDeleteData);
48 compute_connectivity_domain_hdl->n_neighbor.reference(tmp.
copy());
49 CTimer::get(
"XIOS").suspend();
54 CTimer::get(
"XIOS").resume();
55 CArray<int,1> tmp(n_neighbor, shape(extent[0]), neverDeleteData);
56 tmp=compute_connectivity_domain_hdl->n_neighbor.getInheritedValue();
57 CTimer::get(
"XIOS").suspend();
62 CTimer::get(
"XIOS").resume();
63 bool isDefined = compute_connectivity_domain_hdl->n_neighbor.hasInheritedValue();
64 CTimer::get(
"XIOS").suspend();
71 CTimer::get(
"XIOS").resume();
72 compute_connectivity_domain_hdl->n_neighbor_max.setValue(n_neighbor_max);
73 CTimer::get(
"XIOS").suspend();
78 CTimer::get(
"XIOS").resume();
79 *n_neighbor_max = compute_connectivity_domain_hdl->n_neighbor_max.getInheritedValue();
80 CTimer::get(
"XIOS").suspend();
85 CTimer::get(
"XIOS").resume();
86 bool isDefined = compute_connectivity_domain_hdl->n_neighbor_max.hasInheritedValue();
87 CTimer::get(
"XIOS").suspend();
95 if (!
cstr2string(type, type_size, type_str))
return;
96 CTimer::get(
"XIOS").resume();
97 compute_connectivity_domain_hdl->type.
fromString(type_str);
98 CTimer::get(
"XIOS").suspend();
103 CTimer::get(
"XIOS").resume();
104 if (!
string_copy(compute_connectivity_domain_hdl->type.getInheritedStringValue(),
type, type_size))
105 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");
106 CTimer::get(
"XIOS").suspend();
111 CTimer::get(
"XIOS").resume();
112 bool isDefined = compute_connectivity_domain_hdl->type.hasInheritedValue();
113 CTimer::get(
"XIOS").suspend();
void cxios_set_compute_connectivity_domain_n_neighbor_max(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int n_neighbor_max)
void cxios_set_compute_connectivity_domain_n_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int *n_neighbor, int *extent)
bool cxios_is_defined_compute_connectivity_domain_n_neighbor_max(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl)
bool cxios_is_defined_compute_connectivity_domain_n_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl)
void cxios_get_compute_connectivity_domain_type(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, char *type, int type_size)
virtual void fromString(const StdString &str)
void cxios_get_compute_connectivity_domain_n_neighbor_max(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int *n_neighbor_max)
bool string_copy(const std::string &str, char *cstr, int cstr_size)
void cxios_set_compute_connectivity_domain_type(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, const char *type, int type_size)
bool cxios_is_defined_compute_connectivity_domain_local_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl)
xios::CComputeConnectivityDomain * compute_connectivity_domain_Ptr
bool cxios_is_defined_compute_connectivity_domain_type(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl)
void cxios_set_compute_connectivity_domain_local_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int *local_neighbor, int *extent)
void cxios_get_compute_connectivity_domain_local_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int *local_neighbor, int *extent)
bool cstr2string(const char *cstr, int cstr_size, std::string &str)
void cxios_get_compute_connectivity_domain_n_neighbor(compute_connectivity_domain_Ptr compute_connectivity_domain_hdl, int *n_neighbor, int *extent)
CArray< T_numtype, N_rank > copy() const