source: XIOS/dev/XIOS_DEV_CMIP6/src/interface/c_attr/icreduce_domain_to_scalar_attr.cpp @ 1492

Last change on this file since 1492 was 1492, checked in by oabramkina, 6 years ago

Updating fortran interface for attributes that have been recently introduced and the following filters:

duplicate_scalar_to_axis
reduce_axis_to_axis
reduce_scalar_to_scalar
reorder_domain
temporal_splitting.

File size: 2.6 KB
Line 
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
16extern "C"
17{
18  typedef xios::CReduceDomainToScalar* reduce_domain_to_scalar_Ptr;
19
20  void cxios_set_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, bool local)
21  {
22    CTimer::get("XIOS").resume();
23    reduce_domain_to_scalar_hdl->local.setValue(local);
24    CTimer::get("XIOS").suspend();
25  }
26
27  void cxios_get_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, bool* local)
28  {
29    CTimer::get("XIOS").resume();
30    *local = reduce_domain_to_scalar_hdl->local.getInheritedValue();
31    CTimer::get("XIOS").suspend();
32  }
33
34  bool cxios_is_defined_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl)
35  {
36     CTimer::get("XIOS").resume();
37     bool isDefined = reduce_domain_to_scalar_hdl->local.hasInheritedValue();
38     CTimer::get("XIOS").suspend();
39     return isDefined;
40  }
41
42
43  void cxios_set_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, const char * operation, int operation_size)
44  {
45    std::string operation_str;
46    if (!cstr2string(operation, operation_size, operation_str)) return;
47    CTimer::get("XIOS").resume();
48    reduce_domain_to_scalar_hdl->operation.fromString(operation_str);
49    CTimer::get("XIOS").suspend();
50  }
51
52  void cxios_get_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, char * operation, int operation_size)
53  {
54    CTimer::get("XIOS").resume();
55    if (!string_copy(reduce_domain_to_scalar_hdl->operation.getInheritedStringValue(), operation, operation_size))
56      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");
57    CTimer::get("XIOS").suspend();
58  }
59
60  bool cxios_is_defined_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl)
61  {
62     CTimer::get("XIOS").resume();
63     bool isDefined = reduce_domain_to_scalar_hdl->operation.hasInheritedValue();
64     CTimer::get("XIOS").suspend();
65     return isDefined;
66  }
67}
Note: See TracBrowser for help on using the repository browser.