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

FineInterp.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 #ifndef _FINE_INTERP_H_
00028 #define _FINE_INTERP_H_
00029 
00030 #include "REAL.H"
00031 #include "LevelData.H"
00032 #include "BaseFab.H"
00033 #include "FArrayBox.H"
00034 #include "ProblemDomain.H"
00035 
00036 class DisjointBoxLayout;
00037 
00039 
00047 class FineInterp
00048 {
00049 public:
00051 
00054   FineInterp();
00055 
00057 
00060   ~FineInterp();
00061 
00063 
00074   FineInterp(const DisjointBoxLayout& a_fine_domain,
00075              const int& a_numcomps,
00076              const int& a_ref_ratio,
00077              const Box& a_fine_problem_domain);
00078 
00080 
00090   FineInterp(const DisjointBoxLayout& a_fine_domain,
00091              const int& a_numcomps,
00092              const int& a_ref_ratio,
00093              const ProblemDomain& a_fine_problem_domain);
00094 
00096 
00109   void 
00110   define(const DisjointBoxLayout& a_fine_domain, // the fine level domain
00111          const int& a_numcomps,                   // the number of components
00112          const int& a_ref_ratio,                  // the refinement ratio
00113          const Box& a_fine_problem_domain);      // problem domain
00114 
00115 
00117 
00130   void 
00131   define(const DisjointBoxLayout& a_fine_domain, // the fine level domain
00132          const int& a_numcomps,                   // the number of components
00133          const int& a_ref_ratio,                  // the refinement ratio
00134          const ProblemDomain& a_fine_problem_domain);
00135 
00136 
00138 
00145   bool 
00146   isDefined() const;
00147 
00149 
00167   void 
00168   interpToFine(LevelData<FArrayBox>& a_fine_data,
00169                const LevelData<FArrayBox>& a_coarse_data);
00170 
00171 protected:
00172   void
00173   interpGridData(BaseFab<Real>& a_fine,
00174                  const BaseFab<Real>& a_coarse,
00175                  const Box& a_coarsened_fine_box,
00176                  int a_ref_ratio)
00177     const;
00178 
00179 protected:
00180   bool is_defined;
00181   // the refinement ratio
00182   int m_ref_ratio;
00183   // work array for the coarse level data in a domain that is the
00184   // outline of the fine level domain on the coarse level
00185   LevelData<FArrayBox> m_coarsened_fine_data;
00186   // coarse level problem domain
00187   ProblemDomain m_coarse_problem_domain;
00188 };
00189 
00190 #endif

Generated on Wed Apr 16 14:26:49 2003 for Chombo by doxygen1.2.16