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

CFIVS.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 _CFIVS_H_
00029 #define _CFIVS_H_
00030 
00031 #include <iostream>
00032 #include <cmath>
00033 #include <assert.h>
00034 #include <cstdlib>
00035 #include "REAL.H"
00036 #include "IntVect.H"
00037 #include "Box.H"
00038 #include "LoHiSide.H"
00039 #include "DisjointBoxLayout.H"
00040 #include "IntVectSet.H"
00041 #include "ProblemDomain.H"
00042 
00044 
00049 class CFIVS
00050 {
00051 
00052 private:
00053 
00054 protected:
00055   //for internal use
00056   void  setDefaultValues();
00057 
00058   //the following variables are mainly for self-identification
00059 
00060   /* fine intvects which need to be interpolated */
00061   IntVectSet fiinterp_ivs;  
00062 
00063   bool m_packed;
00064 
00065   Box  m_packedBox;
00066   
00067   bool isdefined;
00068 
00069 public:
00070 
00072   bool isDefined() const;
00073 
00075 
00079   bool isPacked() const;
00080 
00082 
00085   const Box& packedBox() const;
00086 
00088 
00090   const IntVectSet& getFineIVS() const ;
00091 
00093   CFIVS();
00094 
00096   ~CFIVS();
00097 
00099   CFIVS(
00100         const Box& Domain, 
00101         const Box& box_in,
00102         const DisjointBoxLayout& Levboxes, 
00103         int Direction, 
00104         Side::LoHiSide hiorlo);
00105 
00106 
00108   CFIVS(
00109         const ProblemDomain& Domain, 
00110         const Box& box_in,
00111         const DisjointBoxLayout& Levboxes, 
00112         int Direction, 
00113         Side::LoHiSide hiorlo);
00114 
00116   void define(
00117               const Box& Domain, 
00118               const Box& box_in,
00119               const DisjointBoxLayout& fine_boxes, 
00120               int Direction, 
00121               Side::LoHiSide hiorlo);
00122 
00124   void define(
00125               const ProblemDomain& Domain, 
00126               const Box& box_in,
00127               const DisjointBoxLayout& fine_boxes, 
00128               int Direction, 
00129               Side::LoHiSide hiorlo);
00130 
00131   static long long m_packCount, m_sparseCount;
00132 
00133 private:
00134   void operator= (const CFIVS& levcfs_in) {};
00135   CFIVS(const CFIVS& levcfs_in) {};
00136 
00137 };
00138 
00139 inline
00140 bool CFIVS::isPacked() const
00141 {
00142   return m_packed;
00143 }
00144 
00145 
00146 inline
00147 const Box& CFIVS::packedBox() const
00148 {
00149   return m_packedBox;
00150 }
00151 
00152 #endif

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