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