| 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 |
#pragma once |
| 12 |
|
| 13 |
namespace atlas { |
| 14 |
class Mesh; |
| 15 |
|
| 16 |
namespace mesh { |
| 17 |
namespace actions { |
| 18 |
/* |
| 19 |
* Make the mesh periodic |
| 20 |
* - Find out which nodes at the WEST-BC are master nodes |
| 21 |
* of nodes at the EAST-BC |
| 22 |
* - The remote_idx and partition of the EAST-BC nodes |
| 23 |
* are set to the master nodes at WEST-BC, whereas the |
| 24 |
* global index remains unchanged |
| 25 |
*/ |
| 26 |
void build_periodic_boundaries(Mesh& mesh); |
| 27 |
|
| 28 |
// ------------------------------------------------------------------ |
| 29 |
// C wrapper interfaces to C++ routines |
| 30 |
extern "C" { |
| 31 |
void atlas__build_periodic_boundaries(Mesh::Implementation* mesh); |
| 32 |
} |
| 33 |
// ------------------------------------------------------------------ |
| 34 |
|
| 35 |
} // namespace actions |
| 36 |
} // namespace mesh |
| 37 |
} // namespace atlas |