| 1 |
/* |
| 2 |
* (C) Copyright 200 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 |
#pragma once |
| 11 |
|
| 12 |
#include "atlas/functionspace/PointCloud.h" |
| 13 |
|
| 14 |
|
| 15 |
namespace atlas { |
| 16 |
namespace field { |
| 17 |
class FieldSetImpl; |
| 18 |
} |
| 19 |
} // namespace atlas |
| 20 |
|
| 21 |
namespace atlas { |
| 22 |
namespace grid { |
| 23 |
namespace detail { |
| 24 |
namespace grid { |
| 25 |
class Grid; |
| 26 |
} // namespace grid |
| 27 |
} // namespace detail |
| 28 |
} // namespace grid |
| 29 |
using GridImpl = grid::detail::grid::Grid; |
| 30 |
} // namespace atlas |
| 31 |
|
| 32 |
namespace atlas { |
| 33 |
namespace functionspace { |
| 34 |
|
| 35 |
// ------------------------------------------------------------------- |
| 36 |
// C wrapper interfaces to C++ routines |
| 37 |
extern "C" { |
| 38 |
|
| 39 |
const detail::PointCloud* atlas__functionspace__PointCloud__new__lonlat(const field::FieldImpl* lonlat); |
| 40 |
|
| 41 |
const detail::PointCloud* atlas__functionspace__PointCloud__new__lonlat_ghost(const field::FieldImpl* lonlat, |
| 42 |
const field::FieldImpl* ghost); |
| 43 |
|
| 44 |
const detail::PointCloud* atlas__functionspace__PointCloud__new__fieldset(const field::FieldSetImpl* fset); |
| 45 |
|
| 46 |
const detail::PointCloud* atlas__functionspace__PointCloud__new__grid(const GridImpl* grid); |
| 47 |
|
| 48 |
void atlas__functionspace__PointCloud__delete(detail::PointCloud* This); |
| 49 |
field::FieldImpl* atlas__fs__PointCloud__create_field(const detail::PointCloud* This, |
| 50 |
const eckit::Configuration* options); |
| 51 |
|
| 52 |
idx_t atlas__fs__PointCloud__size(const detail::PointCloud* This); |
| 53 |
|
| 54 |
const field::FieldImpl* atlas__fs__PointCloud__lonlat(const detail::PointCloud* This); |
| 55 |
} |
| 56 |
|
| 57 |
} // namespace functionspace |
| 58 |
} // namespace atlas |