releasedExamples/AMRINS/BCutil/PhysBCUtil.cpp
// ---------------------------------------------------------------
/// this is a BC object used in the PatchGodunov stuff
this is a BC object used in the PatchGodunov stuff
this is a BC object used in the PatchGodunov stuff
PhysIBC*
PhysBCUtil::lambdaTraceIBC() const
{
  AdvectIBC* newIBCPtr = new AdvectIBC;
  for (int idir=0; idir<SpaceDim; idir++)
    {
      SideIterator sit;
      for (sit.reset(); sit.ok(); ++sit)
        {
          Side::LoHiSide side = sit();
          newIBCPtr->setBoundaryValue(1.0, idir, side);
        }
    }
  return newIBCPtr;
}
PhysIBC * PhysBCUtil :: lambdaTraceIBC ( ) const { AdvectIBC * newIBCPtr = new AdvectIBC ; for ( int idir = 0 ; idir < SpaceDim ; idir ++ ) { SideIterator sit ; for ( sit . reset ( ) ; sit . ok ( ) ; ++ sit ) { Side :: LoHiSide side = sit ( ) ; newIBCPtr -> setBoundaryValue ( 1.0 , idir , side ) ; } } return newIBCPtr ; }
this is a BC object used in the PatchGodunov stuff
this is a BC object used in the PatchGodunov stuff
// for lambda, all boundary values are 1