| 1 |
/* |
| 2 |
* (C) Crown Copyright 2021 Met Office |
| 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 |
*/ |
| 7 |
|
| 8 |
#include "atlas/redistribution/detail/RedistributionImpl.h" |
| 9 |
|
| 10 |
namespace atlas { |
| 11 |
namespace redistribution { |
| 12 |
namespace detail { |
| 13 |
|
| 14 |
void RedistributionImpl::setup(const FunctionSpace& source, const FunctionSpace& target) { |
| 15 |
source_ = source; |
| 16 |
target_ = target; |
| 17 |
do_setup(); |
| 18 |
} |
| 19 |
|
| 20 |
const FunctionSpace& RedistributionImpl::source() const { |
| 21 |
return source_; |
| 22 |
} |
| 23 |
|
| 24 |
const FunctionSpace& RedistributionImpl::target() const { |
| 25 |
return target_; |
| 26 |
} |
| 27 |
|
| 28 |
} // namespace detail |
| 29 |
} // namespace redistribution |
| 30 |
} // namespace atlas |