Commit 03a72480 authored by Robert K's avatar Robert K

[bugfix][buildGhostCells] added missing read of isRear flag.

parent 96378092
Pipeline #25734 skipped
......@@ -155,6 +155,10 @@ namespace ALUGrid
os.readObject (v[2]);
os.readObject (v[3]);
// read isRear information (see gitter_pll_impl.cc)
bool isRear;
os.read( isRear );
const signed char pointTransmitted = os.get();
// the following makes only sense if information has been transmitted
......
......@@ -21,7 +21,7 @@ namespace ALUGrid
typedef typename A::myhface4_t myhface4_t;
typedef typename A::bnd_t bnd_t;
public :
inline Hbnd4PllExternal (myhface4_t *, int, const bnd_t bt);
inline Hbnd4PllExternal (myhface4_t *, bool, const bnd_t bt);
inline ~Hbnd4PllExternal ();
ElementPllXIF_t & accessPllX ();
const ElementPllXIF_t & accessPllX () const;
......@@ -50,7 +50,7 @@ namespace ALUGrid
typedef typename A::balrule_t balrule_t;
typedef typename A::bnd_t bnd_t;
inline HbndPll (myhface4_t *, int);
inline HbndPll (myhface4_t *, bool);
~HbndPll () {}
virtual bool bndNotifyBalance (balrule_t,int);
virtual bool lockedAgainstCoarsening () const;
......@@ -105,11 +105,11 @@ namespace ALUGrid
virtual bool bndNotifyBalance (balrule_t,int);
virtual bool lockedAgainstCoarsening () const;
public :
HbndPllMacro (myhface4_t *,int,
HbndPllMacro (myhface4_t *,bool,
const bnd_t bt,
BuilderIF & ,
MacroGhostInfoHexa* );
HbndPllMacro (myhface4_t *,int,
HbndPllMacro (myhface4_t *,bool,
const bnd_t bt,
BuilderIF & );
......@@ -149,8 +149,8 @@ namespace ALUGrid
//
template < class A, class MX > inline Hbnd4PllExternal < A, MX >::
Hbnd4PllExternal (myhface4_t * f, int t, const bnd_t bt)
: Hbnd4Top < A > (0,f,t,bt), _mxt (new MX (*this))
Hbnd4PllExternal (myhface4_t * f, bool isRear, const bnd_t bt)
: Hbnd4Top < A > (0,f,isRear,bt), _mxt (new MX (*this))
{
this->restoreFollowFace ();
return;
......@@ -179,7 +179,7 @@ namespace ALUGrid
}
template < class A, class X, class MX > inline Hbnd4PllInternal < A, X, MX >::HbndPll::
HbndPll (myhface4_t * f, int t) : A (f,t), _ext (*this) , _ghostPair((helement_STI *) 0 ,-1) {
HbndPll (myhface4_t * f, bool isRear) : A (f,isRear), _ext (*this) , _ghostPair((helement_STI *) 0 ,-1) {
return;
}
......@@ -231,11 +231,11 @@ namespace ALUGrid
}
template < class A, class X, class MX > Hbnd4PllInternal < A, X, MX >::
HbndPllMacro::HbndPllMacro (myhface4_t * f, int t,
HbndPllMacro::HbndPllMacro (myhface4_t * f, bool isRear,
const bnd_t bt,
BuilderIF & mgb,
MacroGhostInfoHexa* ghInfo )
: Hbnd4Top < micro_t > (0,f,t,bt)
: Hbnd4Top < micro_t > (0,f,isRear,bt)
, _mxt (0)
, _mgb(mgb)
, _gm( new MacroGhostHexa( _mgb , ghInfo, f ) )
......@@ -250,10 +250,10 @@ namespace ALUGrid
}
template < class A, class X, class MX > Hbnd4PllInternal < A, X, MX >::
HbndPllMacro::HbndPllMacro (myhface4_t * f, int t,
HbndPllMacro::HbndPllMacro (myhface4_t * f, bool isRear,
const bnd_t bt,
BuilderIF & mgb)
: Hbnd4Top < micro_t > (0,f,t,bt)
: Hbnd4Top < micro_t > (0,f,isRear,bt)
, _mxt (new MX (*this))
, _mgb(mgb)
, _gm(0)
......
......@@ -181,6 +181,10 @@ namespace ALUGrid
os.readObject (v[1]);
os.readObject (v[2]);
// read isRear information (see gitter_pll_impl.cc)
bool isRear;
os.read( isRear );
const signed char pointTransmitted = os.get();
// the following makes only sense if information has been transmitted
......
......@@ -24,7 +24,7 @@ namespace ALUGrid
typedef typename A :: myhface3_t myhface3_t ;
typedef typename A :: bnd_t bnd_t ;
public :
inline Hbnd3PllExternal (myhface3_t *, int, const bnd_t bt) ;
inline Hbnd3PllExternal (myhface3_t *, bool, const bnd_t bt) ;
inline ~Hbnd3PllExternal () ;
ElementPllXIF_t & accessPllX () ;
const ElementPllXIF_t & accessPllX () const ;
......@@ -55,7 +55,7 @@ namespace ALUGrid
typedef typename A :: balrule_t balrule_t ;
typedef typename A :: bnd_t bnd_t ;
inline HbndPll (myhface3_t *, int);
inline HbndPll (myhface3_t *, bool);
~HbndPll () {}
virtual bool bndNotifyBalance (balrule_t,int) ;
virtual bool lockedAgainstCoarsening () const ;
......@@ -109,9 +109,9 @@ namespace ALUGrid
virtual bool bndNotifyBalance (balrule_t,int) ;
virtual bool lockedAgainstCoarsening () const ;
public :
HbndPllMacro (myhface3_t *,int, const bnd_t bt ,
HbndPllMacro (myhface3_t *,bool, const bnd_t bt ,
BuilderIF& , MacroGhostInfoTetra* ) ;
HbndPllMacro (myhface3_t *,int, const bnd_t bt, BuilderIF& ) ;
HbndPllMacro (myhface3_t *,bool, const bnd_t bt, BuilderIF& ) ;
~HbndPllMacro () ;
ElementPllXIF_t & accessPllX () ;
const ElementPllXIF_t & accessPllX () const ;
......@@ -145,8 +145,8 @@ namespace ALUGrid
// # # # ###### # # # ######
//
template < class A, class MX > inline Hbnd3PllExternal < A, MX > ::
Hbnd3PllExternal (myhface3_t * f, int t, const bnd_t bt)
: Hbnd3Top < A > (0,f,t,bt), _mxt (new MX (*this)) {
Hbnd3PllExternal (myhface3_t * f, bool isRear, const bnd_t bt)
: Hbnd3Top < A > (0,f,isRear,bt), _mxt (new MX (*this)) {
this->restoreFollowFace () ;
return ;
}
......@@ -174,8 +174,8 @@ namespace ALUGrid
}
template < class A, class X, class MX > inline Hbnd3PllInternal < A, X, MX > :: HbndPll ::
HbndPll (myhface3_t * f, int t )
: A (f,t), _ext (*this), _ghostPair( (helement_STI *) 0, -1) {
HbndPll (myhface3_t * f, bool isRear )
: A (f, isRear), _ext (*this), _ghostPair( (helement_STI *) 0, -1) {
return ;
}
......@@ -227,11 +227,11 @@ namespace ALUGrid
//***************************************************************************************
template < class A, class X, class MX >
Hbnd3PllInternal < A, X, MX > :: HbndPllMacro ::
HbndPllMacro (myhface3_t * f, int t,
HbndPllMacro (myhface3_t * f, bool isRear,
const bnd_t bt,
BuilderIF& mgb ,
MacroGhostInfoTetra* ghInfo)
: Hbnd3Top < micro_t > (0,f,t,bt)
: Hbnd3Top < micro_t > (0,f,isRear,bt)
, _mxt(0)
, _mgb(mgb)
, _gm( new MacroGhostTetra( _mgb , ghInfo, f ) )
......@@ -246,10 +246,10 @@ namespace ALUGrid
template < class A, class X, class MX >
Hbnd3PllInternal < A, X, MX > :: HbndPllMacro ::
HbndPllMacro (myhface3_t * f, int t,
HbndPllMacro (myhface3_t * f, bool isRear,
const bnd_t bt,
BuilderIF& mgb )
: Hbnd3Top < micro_t > (0,f,t,bt)
: Hbnd3Top < micro_t > (0,f,isRear,bt)
, _mxt ( new MX (*this) )
, _mgb(mgb)
, _gm( 0 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment