Debian Codegraph @

src/atlas/trans/ifs/TransIFSNodeColumns.cc

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