lib/src/AMRTools/QuadCFInterp.cpp
/***********************/
//  apply coarse-fine boundary conditions -- assume that phi grids
//  are grown by one
/***********************/
apply coarse-fine boundary conditions -- assume that phi grids
are grown by one
apply coarse - fine boundary conditions -- assume that phi grids are grown by one
void
QuadCFInterp::coarseFineInterp(BaseFab<Real> & a_phif,
                               const BaseFab<Real> & a_phic,
                               const QuadCFStencil& a_qcfs,
                               const Side::LoHiSide a_hiorlo,
                               const int a_idir,
                               const Interval& a_variables) const
{
  CH_TIME("QuadCFInterp::coarseFineInterp(BaseFab<Real> & a_phif,...)");
  CH_assert(isDefined());
  if (m_level > 0)
    {
      if (!a_qcfs.isEmpty())
        {
          BaseFab<Real>  phistar;
          getPhiStar(phistar, a_phic, a_qcfs, a_hiorlo, a_idir, a_variables);
          interpOnIVS(a_phif, phistar, a_qcfs, a_hiorlo, a_idir, a_variables);
        }
    }
}
void QuadCFInterp :: coarseFineInterp ( BaseFab < Real > & a_phif , const BaseFab < Real > & a_phic , const QuadCFStencil & a_qcfs , const Side :: LoHiSide a_hiorlo , const int a_idir , const Interval & a_variables ) const { CH_TIME ( " " ) ; CH_assert ( isDefined ( ) ) ; if ( m_level > 0 ) { if ( ! a_qcfs . isEmpty ( ) ) { BaseFab < Real > phistar ; getPhiStar ( phistar , a_phic , a_qcfs , a_hiorlo , a_idir , a_variables ) ; interpOnIVS ( a_phif , phistar , a_qcfs , a_hiorlo , a_idir , a_variables ) ; } } }
apply coarse-fine boundary conditions -- assume that phi grids
are grown by one
apply coarse - fine boundary conditions -- assume that phi grids are grown by one
//nothing happens if m_level == 0 //first find extended value phistar //includes finding slopes of coarse solution bar //given phistar, interpolate on fine ivs