Debian Codegraph @

src/atlas/grid/detail/partitioner/MatchingFunctionSpacePartitioner.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/grid/detail/partitioner/MatchingFunctionSpacePartitioner.h"
12
13 #include <sstream>
14
15 #include "atlas/functionspace/FunctionSpace.h"
16 #include "atlas/runtime/Exception.h"
17
18 namespace atlas {
19 namespace grid {
20 namespace detail {
21 namespace partitioner {
22
23 MatchingFunctionSpacePartitioner::MatchingFunctionSpacePartitioner(): Partitioner() {
24 ATLAS_THROW_EXCEPTION("Error: A MatchingFunctionPartitioner needs to be initialised with a FunctionSpace");
25 }
26
27 // MatchingFunctionSpacePartitioner::MatchingFunctionSpacePartitioner(const idx_t nb_partitions):
28 // Partitioner(nb_partitions) {
29 // ATLAS_NOTIMPLEMENTED;
30 // }
31
32 MatchingFunctionSpacePartitioner::MatchingFunctionSpacePartitioner(const FunctionSpace& functionspace, const eckit::Parametrisation&):
33 Partitioner(functionspace.nb_parts(),util::Config("mpi_comm",functionspace.mpi_comm())), partitioned_(functionspace) {}
34
35 } // namespace partitioner
36 } // namespace detail
37 } // namespace grid
38 } // namespace atlas