| 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/Spectral.h" |
| 14 |
|
| 15 |
// ------------------------------------------------------------------- |
| 16 |
// C wrapper interfaces to C++ routines |
| 17 |
namespace atlas { |
| 18 |
namespace field { |
| 19 |
class FieldSetImpl; |
| 20 |
class FieldImpl; |
| 21 |
} // namespace field |
| 22 |
namespace trans { |
| 23 |
class TransImpl; |
| 24 |
} |
| 25 |
namespace functionspace { |
| 26 |
|
| 27 |
extern "C" { |
| 28 |
const detail::Spectral* atlas__SpectralFunctionSpace__new__config(const eckit::Configuration* config); |
| 29 |
void atlas__SpectralFunctionSpace__delete(detail::Spectral* This); |
| 30 |
field::FieldImpl* atlas__fs__Spectral__create_field(const detail::Spectral* This, const eckit::Configuration* options); |
| 31 |
void atlas__SpectralFunctionSpace__gather(const detail::Spectral* This, const field::FieldImpl* local, |
| 32 |
field::FieldImpl* global); |
| 33 |
void atlas__SpectralFunctionSpace__gather_fieldset(const detail::Spectral* This, const field::FieldSetImpl* local, |
| 34 |
field::FieldSetImpl* global); |
| 35 |
void atlas__SpectralFunctionSpace__scatter(const detail::Spectral* This, const field::FieldImpl* global, |
| 36 |
field::FieldImpl* local); |
| 37 |
void atlas__SpectralFunctionSpace__scatter_fieldset(const detail::Spectral* This, const field::FieldSetImpl* global, |
| 38 |
field::FieldSetImpl* local); |
| 39 |
void atlas__SpectralFunctionSpace__norm(const detail::Spectral* This, const field::FieldImpl* field, double norm[], |
| 40 |
int rank); |
| 41 |
void atlas__SpectralFunctionSpace__nspec2(const detail::Spectral* This, int& nspec2); |
| 42 |
void atlas__SpectralFunctionSpace__nspec2g(const detail::Spectral* This, int& nspec2g); |
| 43 |
void atlas__SpectralFunctionSpace__truncation(const detail::Spectral* This, int& truncation); |
| 44 |
void atlas__SpectralFunctionSpace__nump(const detail::Spectral* This, int& nump); |
| 45 |
void atlas__SpectralFunctionSpace__nmyms(const detail::Spectral* This, const int*& nmyms, int& size); |
| 46 |
void atlas__SpectralFunctionSpace__nasm0(const detail::Spectral* This, const int*& nasm0, int& size); |
| 47 |
void atlas__SpectralFunctionSpace__nvalue(const detail::Spectral* This, const int*& nvalue, int& size); |
| 48 |
void atlas__SpectralFunctionSpace__levels(const detail::Spectral* This, int& levels); |
| 49 |
} |
| 50 |
|
| 51 |
} // namespace functionspace |
| 52 |
} // namespace atlas |