Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ExtrapFillPatch.H

Go to the documentation of this file.
00001 /* _______              __
00002   / ___/ /  ___  __ _  / /  ___
00003  / /__/ _ \/ _ \/  ' \/ _ \/ _ \
00004  \___/_//_/\___/_/_/_/_.__/\___/ 
00005 */
00006 //
00007 // This software is copyright (C) by the Lawrence Berkeley
00008 // National Laboratory.  Permission is granted to reproduce
00009 // this software for non-commercial purposes provided that
00010 // this notice is left intact.
00011 // 
00012 // It is acknowledged that the U.S. Government has rights to
00013 // this software under Contract DE-AC03-765F00098 between
00014 // the U.S.  Department of Energy and the University of
00015 // California.
00016 //
00017 // This software is provided as a professional and academic
00018 // contribution for joint exchange. Thus it is experimental,
00019 // is provided ``as is'', with no warranties of any kind
00020 // whatsoever, no support, no promise of updates, or printed
00021 // documentation. By using this software, you acknowledge
00022 // that the Lawrence Berkeley National Laboratory and
00023 // Regents of the University of California shall have no
00024 // liability with respect to the infringement of other
00025 // copyrights by any part of this software.
00026 //
00027 
00028 #ifndef _EXTRAP_FILL_PATCH_H_
00029 #define _EXTRAP_FILL_PATCH_H_
00030 
00031 class Box;
00032 #include "Interval.H"
00033 #include "SPACE.H"
00034 #include "FArrayBox.H"
00035 #include "LayoutData.H"
00036 #include "ProblemDomain.H"
00037 #include "IntVectSet.H"
00038 //
00040 
00114 class ExtrapFillPatch
00115 {
00116 public:
00117 
00119 
00122   ExtrapFillPatch();
00123 
00125 
00128   ~ExtrapFillPatch();
00129 
00131 
00150   ExtrapFillPatch(
00151     const DisjointBoxLayout& a_level_domain,
00152     const Box& a_problem_domain,
00153     const Interval& a_extrap_interval
00154     );
00155 
00156 
00157 
00159 
00178   ExtrapFillPatch(
00179     const DisjointBoxLayout& a_level_domain,
00180     const ProblemDomain& a_problem_domain,
00181     const Interval& a_extrap_interval
00182     );
00183 
00185 
00210   void
00211   define(
00212     const DisjointBoxLayout& a_level_domain,
00213     const Box& a_problem_domain,
00214     const Interval& a_extrap_interval
00215     );
00216 
00217 
00219 
00244   void
00245   define(
00246     const DisjointBoxLayout& a_level_domain,
00247     const ProblemDomain& a_problem_domain,
00248     const Interval& a_extrap_interval
00249     );
00250 
00252 
00261   bool
00262   isDefined() const;
00263 
00265 
00280   void
00281   fillExtrap(
00282     LevelData<FArrayBox>& a_data,
00283     int a_dir,
00284     int a_dest_comp,
00285     int a_num_comp
00286     );
00287 
00288   //  void
00289   //  printIntVectSets() const;
00290 
00291 protected:
00292   bool m_is_defined;
00293 // locations of ghost cells on the low side of the grid to extrapolate to.
00294   LayoutData<IntVectSet> m_lo_extrap[SpaceDim];
00295 // locations of ghost cells on the high side of the grid to extrapolate to.
00296   LayoutData<IntVectSet> m_hi_extrap[SpaceDim];
00297 // interval of ghost cells to extrapolate, where 0 are the ghost cells
00298 // directly adjacent to the valid domain, and increasing outwards.
00299   Interval m_extrap_interval;
00300 };
00301 
00302 #endif

Generated on Wed Apr 16 14:31:04 2003 for EBChombo by doxygen1.2.16