28#include "Intersection.hpp"
52 m_bound = m_pbound =
false;
70 m_bound = m_pbound =
false;
78 m_owners[0] = intersection.m_owners[0];
79 m_owners[1] = intersection.m_owners[1];
80 m_iface = intersection.m_iface;
81 m_isnew = intersection.m_isnew;
82 m_isghost = intersection.m_isghost;
83 m_finer = intersection.m_finer;
84 m_out = intersection.m_out;
85 m_outisghost = intersection.m_outisghost;
86 m_bound = intersection.m_bound;
87 m_pbound = intersection.m_pbound;
88 m_dim = intersection.m_dim;
95 m_owners[0] = intersection.m_owners[0];
96 m_owners[1] = intersection.m_owners[1];
97 m_iface = intersection.m_iface;
98 m_isnew = intersection.m_isnew;
99 m_isghost = intersection.m_isghost;
100 m_finer = intersection.m_finer;
101 m_out = intersection.m_out;
102 m_outisghost = intersection.m_outisghost;
103 m_bound = intersection.m_bound;
104 m_pbound = intersection.m_pbound;
105 m_dim = intersection.m_dim;
112bool Intersection::operator ==(
const Intersection & intersection){
114 check = check && (m_owners[0] == intersection.m_owners[0]);
115 check = check && (m_owners[1] == intersection.m_owners[1]);
116 check = check && (m_iface == intersection.m_iface);
117 check = check && (m_isnew == intersection.m_isnew);
118 check = check && (m_isghost == intersection.m_isghost);
119 check = check && (m_out == intersection.m_out);
120 check = check && (m_outisghost == intersection.m_outisghost);
121 check = check && (m_finer == intersection.m_finer);
122 check = check && (m_bound == intersection.m_bound);
123 check = check && (m_pbound == intersection.m_pbound);
124 check = check && (m_dim == intersection.m_dim);
138uint32_t Intersection::getOut()
const {
139 return m_owners[m_out];
144uint32_t Intersection::getIn()
const {
145 return m_owners[!m_out];
150bool Intersection::getOutIsGhost()
const {
156uint32_t Intersection::getFiner()
const {
157 return m_owners[m_finer];
164void Intersection::getNormal(int8_t normal[3], int8_t normals[6][3])
const {
165 for (
int i=0; i<m_dim; i++){
166 normal[i] = normals[m_iface][i];
173bool Intersection::getBound()
const {
180bool Intersection::getIsGhost()
const {
187bool Intersection::getPbound()
const {
Intersection class definition.
Intersection & operator=(const Intersection &intersection)