Debian Codegraph @

src/atlas/functionspace/detail/FunctionSpaceInterface.h

raw
1 /*
2 * (C) Copyright 2013 ECMWF.
3 *
4 * This software is licensed under the terms of the Apache Licence Version 2.0
5 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6 * In applying this licence, ECMWF does not waive the privileges and immunities
7 * granted to it by virtue of its status as an intergovernmental organisation
8 * nor does it submit to any jurisdiction.
9 */
10
11 #pragma once
12
13
14 namespace eckit {
15 class Configuration;
16 }
17
18 namespace atlas {
19 namespace field {
20 class FieldImpl;
21 class FieldSetImpl;
22 } // namespace field
23 } // namespace atlas
24
25 namespace atlas {
26 namespace functionspace {
27 class FunctionSpaceImpl;
28
29 //------------------------------------------------------------------------------------------------------
30
31 // C wrapper interfaces to C++ routines
32 extern "C" {
33 void atlas__FunctionSpace__delete(FunctionSpaceImpl* This);
34 void atlas__FunctionSpace__name(const FunctionSpaceImpl* This, char*& name, int& size);
35 field::FieldImpl* atlas__FunctionSpace__create_field(const FunctionSpaceImpl* This,
36 const eckit::Configuration* options);
37 field::FieldImpl* atlas__FunctionSpace__create_field_template(const FunctionSpaceImpl* This,
38 const field::FieldImpl* field_template,
39 const eckit::Configuration* options);
40 void atlas__FunctionSpace__halo_exchange_field(const FunctionSpaceImpl* This, field::FieldImpl* field);
41 void atlas__FunctionSpace__halo_exchange_fieldset(const FunctionSpaceImpl* This, field::FieldSetImpl* fieldset);
42 void atlas__FunctionSpace__adjoint_halo_exchange_field(const FunctionSpaceImpl* This, field::FieldImpl* field);
43 void atlas__FunctionSpace__adjoint_halo_exchange_fieldset(const FunctionSpaceImpl* This, field::FieldSetImpl* fieldset);
44 }
45
46 //------------------------------------------------------------------------------------------------------
47
48 } // namespace functionspace
49
50 //------------------------------------------------------------------------------------------------------
51
52 } // namespace atlas