示例#1
0
MappedLevelFluxRegister::MappedLevelFluxRegister(const DisjointBoxLayout& a_dblFine,
                                     const DisjointBoxLayout& a_dblCoar,
                                     const Box&               a_dProblem,
                                     const IntVect&           a_nRefine,
                                     int                      a_nComp,
                                     bool                     a_scaleFineFluxes) :
    m_isDefined(FluxRegUndefined)
{
    ProblemDomain physDomain(a_dProblem);
    define(a_dblFine, a_dblCoar, physDomain,
           a_nRefine, a_nComp, a_scaleFineFluxes);
}
示例#2
0
void
MappedLevelFluxRegister::define(const DisjointBoxLayout& a_dbl,
                          const DisjointBoxLayout& a_dblCoarse,
                          const Box&               a_dProblem,
                          const IntVect&           a_nRefine,
                          int                      a_nComp,
                          bool                     a_scaleFineFluxes)
{
    ProblemDomain physDomain(a_dProblem);
    define(a_dbl, a_dblCoarse, physDomain,
           a_nRefine, a_nComp, a_scaleFineFluxes);
}
示例#3
0
CFStencil::CFStencil(
    const Box& a_fineDomain,
    const Box& a_grid,
    const DisjointBoxLayout& a_fineBoxes,
    const DisjointBoxLayout& a_coarBoxes,
    int a_refRatio,
    int a_direction,
    Side::LoHiSide a_hiorlo)
{
  ProblemDomain physDomain(a_fineDomain);
  setDefaultValues();
  define(physDomain,  a_grid, a_fineBoxes, a_coarBoxes,
         a_refRatio, a_direction, a_hiorlo);
}