| 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/functionspace/StructuredColumns.h" |
| 12 |
|
| 13 |
namespace atlas { |
| 14 |
namespace functionspace { |
| 15 |
|
| 16 |
// ---------------------------------------------------------------------------- |
| 17 |
|
| 18 |
StructuredColumns::StructuredColumns(): FunctionSpace(), functionspace_(nullptr) {} |
| 19 |
|
| 20 |
StructuredColumns::StructuredColumns(const FunctionSpace& functionspace): |
| 21 |
FunctionSpace(functionspace), functionspace_(dynamic_cast<const detail::StructuredColumns*>(get())) {} |
| 22 |
|
| 23 |
StructuredColumns::StructuredColumns(const Grid& grid, const eckit::Configuration& config): |
| 24 |
FunctionSpace(new detail::StructuredColumns(grid, config)), |
| 25 |
functionspace_(dynamic_cast<const detail::StructuredColumns*>(get())) {} |
| 26 |
|
| 27 |
StructuredColumns::StructuredColumns(const Grid& grid, const grid::Partitioner& partitioner, |
| 28 |
const eckit::Configuration& config): |
| 29 |
FunctionSpace(new detail::StructuredColumns(grid, partitioner, config)), |
| 30 |
functionspace_(dynamic_cast<const detail::StructuredColumns*>(get())) {} |
| 31 |
|
| 32 |
StructuredColumns::StructuredColumns(const Grid& grid, const grid::Distribution& distribution, |
| 33 |
const eckit::Configuration& config): |
| 34 |
FunctionSpace(new detail::StructuredColumns(grid, distribution, config)), |
| 35 |
functionspace_(dynamic_cast<const detail::StructuredColumns*>(get())) {} |
| 36 |
|
| 37 |
StructuredColumns::StructuredColumns(const Grid& grid, const Vertical& vertical, const eckit::Configuration& config): |
| 38 |
FunctionSpace(new detail::StructuredColumns(grid, vertical, config)), |
| 39 |
functionspace_(dynamic_cast<const detail::StructuredColumns*>(get())) {} |
| 40 |
|
| 41 |
StructuredColumns::StructuredColumns(const Grid& grid, const Vertical& vertical, const grid::Partitioner& partitioner, |
| 42 |
const eckit::Configuration& config): |
| 43 |
FunctionSpace(new detail::StructuredColumns(grid, vertical, partitioner, config)), |
| 44 |
functionspace_(dynamic_cast<const detail::StructuredColumns*>(get())) {} |
| 45 |
|
| 46 |
StructuredColumns::StructuredColumns(const Grid& grid, const grid::Distribution& distribution, const Vertical& vertical, |
| 47 |
const eckit::Configuration& config): |
| 48 |
FunctionSpace(new detail::StructuredColumns(grid, distribution, vertical, config)), |
| 49 |
functionspace_(dynamic_cast<const detail::StructuredColumns*>(get())) {} |
| 50 |
|
| 51 |
std::string StructuredColumns::checksum(const FieldSet& fieldset) const { |
| 52 |
return functionspace_->checksum(fieldset); |
| 53 |
} |
| 54 |
|
| 55 |
std::string StructuredColumns::checksum(const Field& field) const { |
| 56 |
return functionspace_->checksum(field); |
| 57 |
} |
| 58 |
|
| 59 |
// ---------------------------------------------------------------------------- |
| 60 |
|
| 61 |
} // namespace functionspace |
| 62 |
} // namespace atlas |