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

NodeCFIVS.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 // NodeCFIVS.H
00029 // petermc, 1 May 2001
00030 #ifndef NODECFIVS_H
00031 #define NODECFIVS_H
00032 
00033 #include <iostream>
00034 #include <cmath>
00035 #include <assert.h>
00036 #include <cstdlib>
00037 #include "REAL.H"
00038 #include "IntVect.H"
00039 #include "Box.H"
00040 #include "LoHiSide.H"
00041 #include "DisjointBoxLayout.H"
00042 #include "IntVectSet.H"
00043 
00045 
00051 class NodeCFIVS
00052 {
00053 
00054 public:
00055 
00057 
00059 
00061   NodeCFIVS();
00062 
00064 
00066   ~NodeCFIVS();
00067 
00069 
00072   NodeCFIVS(const Box& a_domain,
00073             const Box& a_box,
00074             const DisjointBoxLayout& a_levelBoxes, 
00075             int a_idir,
00076             Side::LoHiSide a_hiorlo);
00077 
00079 
00082   NodeCFIVS(const ProblemDomain& a_domain,
00083             const Box& a_box,
00084             const DisjointBoxLayout& a_levelBoxes, 
00085             int a_idir,
00086             Side::LoHiSide a_hiorlo);
00087 
00089 
00097   void define(const Box& a_domain,
00098               const Box& a_box,
00099               const DisjointBoxLayout& a_levelBoxes, 
00100               int a_idir,
00101               Side::LoHiSide a_hiorlo);
00102 
00104 
00112   void define(const ProblemDomain& a_domain,
00113               const Box& a_box,
00114               const DisjointBoxLayout& a_levelBoxes, 
00115               int a_idir,
00116               Side::LoHiSide a_hiorlo);
00117 
00119               
00121   bool isDefined() const;
00122 
00124 
00128   bool isPacked() const;
00129 
00131 
00134   const Box& packedBox() const;
00135 
00137 
00142   const IntVectSet& getFineIVS() const ;
00143 
00144   static long long m_packCount, m_sparseCount;
00145 
00146 protected:
00147 
00148   //for internal use
00149   void setDefaultValues();
00150 
00151   // indices of fine nodes that need to be interpolated
00152   IntVectSet m_fineInterpIVS;
00153 
00154   bool m_packed;
00155 
00156   Box m_packedBox;
00157 
00158   bool m_isdefined;
00159 
00160 private:
00161   void operator= (const NodeCFIVS& levcfs_in) {};
00162 
00163   NodeCFIVS(const NodeCFIVS& levcfs_in) {};
00164         
00165 };
00166 
00167 inline
00168 bool NodeCFIVS::isPacked() const
00169 {
00170   return m_packed;
00171 }
00172 
00173 
00174 inline
00175 const Box& NodeCFIVS::packedBox() const
00176 {
00177   return m_packedBox;
00178 }
00179 
00180 #endif

Generated on Tue Apr 15 18:31:55 2003 for AMRNodeElliptic by doxygen1.2.16