OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
vector_dist_ofb.hpp
1/*
2 * vector_dist_ofb.hpp
3 *
4 * Created on: Jan 13, 2016
5 * Author: i-bird
6 */
7
8#ifndef SRC_VECTOR_VECTOR_DIST_OFB_HPP_
9#define SRC_VECTOR_VECTOR_DIST_OFB_HPP_
10
17{
26 static long int out(size_t pp_id, size_t p_id)
27 {
28 return -1;
29 }
30};
31
34{
43 static long int out(size_t pp_id, size_t p_id)
44 {
45 std::cerr << "Warning: " << __FILE__ << ":" << __LINE__ << " out of bound particle detected " << std::endl;
46
47 return -1;
48 }
49};
50
52struct Nothing
53{
62 static long int out(size_t pp_id, size_t p_id)
63 {
64 return -1;
65 }
66};
67
69struct Error
70{
79 static long int out(size_t pp_id, size_t p_id)
80 {
81 std::cerr << "Error: " << __FILE__ << ":" << __LINE__ << " out of bound particle detected " << std::endl;
82
83 exit(-1);
84
85 return -1;
86 }
87};
88
89#endif /* SRC_VECTOR_VECTOR_DIST_OFB_HPP_ */
Out-of-bound policy kill the program.
static long int out(size_t pp_id, size_t p_id)
It decide what to do when the particle is out.
Out-of-bound policy kill the particle but print a warning.
static long int out(size_t pp_id, size_t p_id)
It decide what to do when the particle is out.
Out of bound policy it detect out of bound particles and decide what to do.
static long int out(size_t pp_id, size_t p_id)
It decide what to do when the particle is out.
Out-of-bound policy do nothing.
static long int out(size_t pp_id, size_t p_id)
It decide what to do when the particle is out.