| 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 |
#include "atlas/trans/ifs/TransIFSStructuredColumns.h" |
| 12 |
#include "atlas/functionspace/Spectral.h" |
| 13 |
#include "atlas/functionspace/StructuredColumns.h" |
| 14 |
#include "atlas/trans/detail/TransFactory.h" |
| 15 |
|
| 16 |
namespace atlas { |
| 17 |
namespace trans { |
| 18 |
|
| 19 |
TransIFSStructuredColumns::TransIFSStructuredColumns(const functionspace::StructuredColumns& gp, |
| 20 |
const functionspace::Spectral& sp, |
| 21 |
const eckit::Configuration& config): |
| 22 |
TransIFSStructuredColumns(Cache(), gp, sp, config) {} |
| 23 |
|
| 24 |
TransIFSStructuredColumns::TransIFSStructuredColumns(const Cache& cache, const functionspace::StructuredColumns& gp, |
| 25 |
const functionspace::Spectral& sp, |
| 26 |
const eckit::Configuration& config): |
| 27 |
TransIFS(cache, gp.grid(), sp.truncation(), config) { |
| 28 |
assertCompatibleDistributions(gp, sp); |
| 29 |
spectral_ = sp; |
| 30 |
} |
| 31 |
|
| 32 |
TransIFSStructuredColumns::~TransIFSStructuredColumns() = default; |
| 33 |
|
| 34 |
namespace { |
| 35 |
static TransBuilderFunctionSpace<TransIFSStructuredColumns> builder_ifs("ifs(StructuredColumns,Spectral)", "ifs"); |
| 36 |
// Deprecated, use below |
| 37 |
|
| 38 |
static TransBuilderFunctionSpace<TransIFSStructuredColumns> builder_ectrans("ectrans(StructuredColumns,Spectral)", |
| 39 |
"ectrans"); |
| 40 |
} // namespace |
| 41 |
|
| 42 |
} // namespace trans |
| 43 |
} // namespace atlas |