5 #include <boost/multi_array.hpp>
21 CTimer::get(
"XIOS").resume();
22 reduce_domain_to_scalar_hdl->local.setValue(local);
23 CTimer::get(
"XIOS").suspend();
28 CTimer::get(
"XIOS").resume();
29 *local = reduce_domain_to_scalar_hdl->local.getInheritedValue();
30 CTimer::get(
"XIOS").suspend();
35 CTimer::get(
"XIOS").resume();
36 bool isDefined = reduce_domain_to_scalar_hdl->local.hasInheritedValue();
37 CTimer::get(
"XIOS").suspend();
44 std::string operation_str;
45 if (!
cstr2string(operation, operation_size, operation_str))
return;
46 CTimer::get(
"XIOS").resume();
47 reduce_domain_to_scalar_hdl->operation.
fromString(operation_str);
48 CTimer::get(
"XIOS").suspend();
53 CTimer::get(
"XIOS").resume();
54 if (!
string_copy(reduce_domain_to_scalar_hdl->operation.getInheritedStringValue(), operation, operation_size))
55 ERROR(
"void cxios_get_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, char * operation, int operation_size)", <<
"Input string is too short");
56 CTimer::get(
"XIOS").suspend();
61 CTimer::get(
"XIOS").resume();
62 bool isDefined = reduce_domain_to_scalar_hdl->operation.hasInheritedValue();
63 CTimer::get(
"XIOS").suspend();
void cxios_set_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, const char *operation, int operation_size)
virtual void fromString(const StdString &str)
bool cxios_is_defined_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl)
xios::CReduceDomainToScalar * reduce_domain_to_scalar_Ptr
bool string_copy(const std::string &str, char *cstr, int cstr_size)
void cxios_get_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, bool *local)
bool cxios_is_defined_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl)
void cxios_set_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, bool local)
void cxios_get_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, char *operation, int operation_size)
bool cstr2string(const char *cstr, int cstr_size, std::string &str)