| 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 |
#include "atlas/functionspace/CellColumns.h" |
| 14 |
#include "atlas/mesh/Mesh.h" |
| 15 |
|
| 16 |
namespace atlas { |
| 17 |
namespace field { |
| 18 |
class FieldSetImpl; |
| 19 |
class FieldImpl; |
| 20 |
} // namespace field |
| 21 |
} // namespace atlas |
| 22 |
|
| 23 |
namespace atlas { |
| 24 |
namespace functionspace { |
| 25 |
namespace detail { |
| 26 |
|
| 27 |
extern "C" { |
| 28 |
const CellColumns* atlas__CellsFunctionSpace__new(Mesh::Implementation* mesh, const eckit::Configuration* config); |
| 29 |
void atlas__CellsFunctionSpace__delete(CellColumns* This); |
| 30 |
int atlas__CellsFunctionSpace__nb_cells(const CellColumns* This); |
| 31 |
const Mesh::Implementation* atlas__CellsFunctionSpace__mesh(const CellColumns* This); |
| 32 |
const mesh::HybridElements* atlas__CellsFunctionSpace__cells(const CellColumns* This); |
| 33 |
|
| 34 |
void atlas__CellsFunctionSpace__halo_exchange_fieldset(const CellColumns* This, field::FieldSetImpl* fieldset); |
| 35 |
void atlas__CellsFunctionSpace__halo_exchange_field(const CellColumns* This, field::FieldImpl* field); |
| 36 |
const parallel::HaloExchange* atlas__CellsFunctionSpace__get_halo_exchange(const CellColumns* This); |
| 37 |
|
| 38 |
void atlas__CellsFunctionSpace__gather_fieldset(const CellColumns* This, const field::FieldSetImpl* local, |
| 39 |
field::FieldSetImpl* global); |
| 40 |
void atlas__CellsFunctionSpace__gather_field(const CellColumns* This, const field::FieldImpl* local, |
| 41 |
field::FieldImpl* global); |
| 42 |
const parallel::GatherScatter* atlas__CellsFunctionSpace__get_gather(const CellColumns* This); |
| 43 |
|
| 44 |
void atlas__CellsFunctionSpace__scatter_fieldset(const CellColumns* This, const field::FieldSetImpl* global, |
| 45 |
field::FieldSetImpl* local); |
| 46 |
void atlas__CellsFunctionSpace__scatter_field(const CellColumns* This, const field::FieldImpl* global, |
| 47 |
field::FieldImpl* local); |
| 48 |
const parallel::GatherScatter* atlas__CellsFunctionSpace__get_scatter(const CellColumns* This); |
| 49 |
|
| 50 |
void atlas__CellsFunctionSpace__checksum_fieldset(const CellColumns* This, const field::FieldSetImpl* fieldset, |
| 51 |
char*& checksum, int& size, int& allocated); |
| 52 |
void atlas__CellsFunctionSpace__checksum_field(const CellColumns* This, const field::FieldImpl* field, char*& checksum, |
| 53 |
int& size, int& allocated); |
| 54 |
const parallel::Checksum* atlas__CellsFunctionSpace__get_checksum(const CellColumns* This); |
| 55 |
} |
| 56 |
|
| 57 |
} // namespace detail |
| 58 |
} // namespace functionspace |
| 59 |
} // namespace atlas |