#include "ALL_Functions.hpp"
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <list>
#include <mpi.h>
#include <vector>
Go to the source code of this file.
◆ BOOST_TEST_MAIN
◆ BOOST_TEST_MODULE
◆ BOOST_AUTO_TEST_CASE() [1/4]
BOOST_AUTO_TEST_CASE |
( |
double_local_process_on_edge | | ) |
|
◆ BOOST_AUTO_TEST_CASE() [2/4]
BOOST_AUTO_TEST_CASE |
( |
double_neighbor_larger_than_min_size | | ) |
|
◆ BOOST_AUTO_TEST_CASE() [3/4]
BOOST_AUTO_TEST_CASE |
( |
double_neighbor_null | | ) |
|
◆ BOOST_AUTO_TEST_CASE() [4/4]
BOOST_AUTO_TEST_CASE |
( |
double_normal_case | | ) |
|
◆ borderShift1d()
template<typename T, typename W>
T ALL::Functions::borderShift1d |
( |
const int | remote_rank, |
|
|
const int | local_coord, |
|
|
const int | global_dim, |
|
|
const W | local_work, |
|
|
const W | remote_work, |
|
|
const T | local_size, |
|
|
const T | remote_size, |
|
|
const T | gamma, |
|
|
const T | minSize ) |
function to compute the one-dimensional shift of the border between the local process and the process indicated by neighbor_rank
- Template Parameters
-
T | data type for vertices and related data |
W | data type for work and related data |
- Parameters
-
[in] | remote_rank | the MPI rank of the neighbors the border is shared with |
[in] | local_coord | the cartesian coordinate of the local domain in the process grid in the direction of the border shift |
[in] | global_dim | the dimension of the process grid in the direction of the border shift |
[in] | local_work | the work on the local process |
[in] | remote_work | the work on the neighboring process |
[in] | local_size | the size of the local domain in the dimension of the border shift |
[in] | remote_size | the size of the neighbor domain in the dimension of the border shift |
[in] | gamma | the correction value for the shift, needed to regulate the width of the shift, e.g. to avoid borders shifts where next-neighbor borders are crossed by one another |
[in] | minSize | optional minimum size of the domain in the dimension of the border shift |
- Returns
- the shift of the border in relation to the local domain
Definition at line 34 of file ALL_Functions.hpp.