ESyS-Particle  2.3.2
WallInteraction.hpp
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef __WALLINTERACTION_HPP
14 #define __WALLINTERACTION_HPP
15 
16 template <class T>
18 {
19  m_p=p;
20  m_wall=w;
21  m_inner_flag=iflag;
22  m_init=true;
23 }
24 
31 template <class T>
32 bool AWallInteraction<T>::hasTag(int tag ,int mask) const
33 {
34  int tag1=m_p->getTag();
35 
36  return ((tag1 & mask)==(tag & mask));
37 }
38 
39 #endif // for the error of redefination !