BareField< T, Dim > Class Template Reference

#include <BareField.h>

Inheritance diagram for BareField< T, Dim >:

Inheritance graph
[legend]
Collaboration diagram for BareField< T, Dim >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T T_t
typedef FieldLayout< Dim > Layout_t
typedef LField< T, Dim > LField_t
typedef vmap< typename Unique::type,
my_auto_ptr< LField< T, Dim > > > 
ac_id_larray
typedef ac_id_larray::iterator iterator_if
typedef ac_id_larray::const_iterator const_iterator_if
typedef LField< T, Dim
>::iterator 
LFI
typedef BareFieldIterator<
T, Dim > 
iterator
typedef iterator PETE_Expr_t
enum  { Dim_u = Dim }
enum  { IsExpr = 0 }

Public Member Functions

 BareField ()
 BareField (const BareField< T, Dim > &)
 BareField (Layout_t &)
 BareField (Layout_t &, const GuardCellSizes< Dim > &)
 ~BareField ()
void initialize (Layout_t &)
void initialize (Layout_t &, const GuardCellSizes< Dim > &)
iterator_if begin_if ()
iterator_if end_if ()
const_iterator_if begin_if () const
const_iterator_if end_if () const
ac_id_larray::size_type size_if () const
virtual void fillGuardCells (bool reallyFill=true) const
void setGuardCells (const T &) const
void accumGuardCells ()
bool isDirty () const
void setDirtyFlag ()
void clearDirtyFlag ()
void fillGuardCellsIfNotDirty () const
Layout_tgetLayout () const
IndexedBareField< T, Dim, 1 > operator[] (const Index &idx)
IndexedBareField< T, Dim, 1 > operator[] (int i)
IndexedBareField< T, Dim,
Dim > 
operator[] (const NDIndex< Dim > &nidx)
SubBareField< T, Dim, SIndex<
Dim > > 
operator[] (const SIndex< Dim > &)
const GuardCellSizes< Dim > & getGC () const
const GuardCellSizes< Dim > & getGuardCellSizes () const
unsigned leftGuard (unsigned d) const
unsigned rightGuard (unsigned d) const
const IndexgetIndex (unsigned d) const
const NDIndex< Dim > & getDomain () const
const BareField< T, Dim > & operator= (T x)
const BareField< T, Dim > & operator= (const BareField< T, Dim > &x)
template<class X>
const BareField< T, Dim > & operator= (const BareField< X, Dim > &x)
template<class B>
const BareField< T, Dim > & operator= (const PETE_Expr< B > &x)
bool compressible () const
double CompressedFraction () const
void Compress () const
void Uncompress () const
void setCompression (bool compress)
virtual void Repartition (UserList *)
virtual void notifyUserOfDelete (UserList *)
iterator begin () const
iterator end () const
iterator beginLoc (const FieldLoc< Dim > &loc) const
void prepareForScalarCode (bool tryfill=true)
void finishScalarCode (bool modified=true)
T & localElement (const NDIndex< Dim > &) const
void getsingle (const NDIndex< Dim > &, T &) const
void write (ostream &)
void write (char *) const
void writeb (char *) const
iterator MakeExpression () const

Protected Attributes

ac_id_larray Locals_ac

Friends

class BareFieldIterator< T, Dim >

Detailed Description

template<class T, unsigned Dim>
class BareField< T, Dim >

Definition at line 59 of file BareField.h.


Member Typedef Documentation

template<class T, unsigned Dim>
typedef vmap< typename Unique::type, my_auto_ptr< LField<T,Dim> > > BareField< T, Dim >::ac_id_larray
 

Definition at line 95 of file BareField.h.

template<class T, unsigned Dim>
typedef ac_id_larray::const_iterator BareField< T, Dim >::const_iterator_if
 

Definition at line 97 of file BareField.h.

template<class T, unsigned Dim>
typedef BareFieldIterator<T,Dim> BareField< T, Dim >::iterator
 

Definition at line 101 of file BareField.h.

template<class T, unsigned Dim>
typedef ac_id_larray::iterator BareField< T, Dim >::iterator_if
 

Definition at line 96 of file BareField.h.

template<class T, unsigned Dim>
typedef FieldLayout<Dim> BareField< T, Dim >::Layout_t
 

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

Definition at line 66 of file BareField.h.

template<class T, unsigned Dim>
typedef LField<T,Dim>::iterator BareField< T, Dim >::LFI
 

Definition at line 98 of file BareField.h.

template<class T, unsigned Dim>
typedef LField<T,Dim> BareField< T, Dim >::LField_t
 

Definition at line 67 of file BareField.h.

template<class T, unsigned Dim>
typedef iterator BareField< T, Dim >::PETE_Expr_t
 

Definition at line 332 of file BareField.h.

template<class T, unsigned Dim>
typedef T BareField< T, Dim >::T_t
 

Definition at line 65 of file BareField.h.


Member Enumeration Documentation

template<class T, unsigned Dim>
anonymous enum
 

Enumerator:
Dim_u 

Definition at line 68 of file BareField.h.

template<class T, unsigned Dim>
anonymous enum
 

Enumerator:
IsExpr 

Definition at line 331 of file BareField.h.


Constructor & Destructor Documentation

template<class T, unsigned Dim>
BareField< T, Dim >::BareField  ) 
 

template<class T, unsigned Dim>
BareField< T, Dim >::BareField const BareField< T, Dim > &   ) 
 

template<class T, unsigned Dim>
BareField< T, Dim >::BareField Layout_t  ) 
 

template<class T, unsigned Dim>
BareField< T, Dim >::BareField Layout_t ,
const GuardCellSizes< Dim > & 
 

template<class T, unsigned Dim>
BareField< T, Dim >::~BareField  ) 
 


Member Function Documentation

template<class T, unsigned Dim>
void BareField< T, Dim >::accumGuardCells  ) 
 

Referenced by ParticleAttrib< T >::scatter(), and scatter().

template<class T, unsigned Dim>
iterator BareField< T, Dim >::begin  )  const [inline]
 

Definition at line 238 of file BareField.h.

Referenced by PatchBC< T, D, M, C >::apply(), UniformCartesian< Dim, MFLOAT >::getCellPositionField(), Cartesian< Dim, MFLOAT >::getCellPositionField(), Cartesian< Dim, MFLOAT >::getCellVolumeField(), Cartesian< Dim, MFLOAT >::getDeltaCellField(), Cartesian< Dim, MFLOAT >::getDeltaVertexField(), UniformCartesian< Dim, MFLOAT >::getVertexPositionField(), Cartesian< Dim, MFLOAT >::getVertexPositionField(), and BareField< T, Dim >::MakeExpression().

template<class T, unsigned Dim>
const_iterator_if BareField< T, Dim >::begin_if  )  const [inline]
 

Definition at line 106 of file BareField.h.

template<class T, unsigned Dim>
iterator_if BareField< T, Dim >::begin_if  )  [inline]
 

Definition at line 104 of file BareField.h.

Referenced by BareField< T, Dim >::accumGuardCells(), PatchBC< T, D, M, C >::apply(), ParallelPeriodicFace< T, D, M, C >::apply(), assign(), SubBareField< T, Dim, S >::begin(), CalcIndexedReceive(), BareField< T, Dim >::Compress(), BareField< T, Dim >::CompressedFraction(), FieldDebugWriteb(), BareField< T, Dim >::fillGuardCells(), for_each(), Interpolator::getFieldIter(), IndexedLocalAssign(), IndexedSend(), BareField< T, Dim >::localElement(), reduceLocalWeights(), BareFieldIterator< T, Dim >::SetCurrentLocation(), BareField< T, Dim >::setGuardCells(), BareField< T, Dim >::Uncompress(), FieldBlock< T, Dim, Mesh, Centering >::write(), BareField< T, Dim >::write(), and BareField< T, Dim >::writeb().

template<class T, unsigned Dim>
iterator BareField< T, Dim >::beginLoc const FieldLoc< Dim > &  loc  )  const [inline]
 

Definition at line 253 of file BareField.h.

template<class T, unsigned Dim>
void BareField< T, Dim >::clearDirtyFlag  )  [inline]
 

Definition at line 122 of file BareField.h.

Referenced by BareField< T, Dim >::BareField(), and BareField< T, Dim >::fillGuardCells().

template<class T, unsigned Dim>
void BareField< T, Dim >::Compress  )  const
 

Referenced by ParticleAttrib< T >::gather(), and BareField< T, Dim >::setCompression().

template<class T, unsigned Dim>
double BareField< T, Dim >::CompressedFraction  )  const
 

template<class T, unsigned Dim>
bool BareField< T, Dim >::compressible  )  const [inline]
 

Definition at line 195 of file BareField.h.

Referenced by assign(), and BareFieldIterator< T, Dim >::CanCompress().

template<class T, unsigned Dim>
iterator BareField< T, Dim >::end  )  const [inline]
 

Definition at line 245 of file BareField.h.

Referenced by Cartesian< Dim, MFLOAT >::getDeltaCellField().

template<class T, unsigned Dim>
const_iterator_if BareField< T, Dim >::end_if  )  const [inline]
 

Definition at line 107 of file BareField.h.

template<class T, unsigned Dim>
iterator_if BareField< T, Dim >::end_if  )  [inline]
 

Definition at line 105 of file BareField.h.

Referenced by BareField< T, Dim >::accumGuardCells(), PatchBC< T, D, M, C >::apply(), ParallelPeriodicFace< T, D, M, C >::apply(), assign(), BareField< T, Dim >::Compress(), BareField< T, Dim >::CompressedFraction(), BareFieldIterator< T, Dim >::done(), SubBareField< T, Dim, S >::end(), FieldDebugWriteb(), BareField< T, Dim >::fillGuardCells(), for_each(), Interpolator::getFieldIter(), IndexedLocalAssign(), IndexedSend(), BareField< T, Dim >::localElement(), reduceLocalWeights(), BareField< T, Dim >::setGuardCells(), BareField< T, Dim >::Uncompress(), FieldBlock< T, Dim, Mesh, Centering >::write(), BareField< T, Dim >::write(), and BareField< T, Dim >::writeb().

template<class T, unsigned Dim>
virtual void BareField< T, Dim >::fillGuardCells bool  reallyFill = true  )  const [virtual]
 

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

Referenced by IndexedBareFieldIterator< T, Dim >::FillGCIfNecessary(), Field< T, Dim, M, C >::fillGuardCells(), BareField< T, Dim >::fillGuardCellsIfNotDirty(), and BareField< T, Dim >::prepareForScalarCode().

template<class T, unsigned Dim>
void BareField< T, Dim >::fillGuardCellsIfNotDirty  )  const [inline]
 

Definition at line 126 of file BareField.h.

Referenced by BareField< T, Dim >::finishScalarCode().

template<class T, unsigned Dim>
void BareField< T, Dim >::finishScalarCode bool  modified = true  )  [inline]
 

Definition at line 284 of file BareField.h.

Referenced by BareFieldIterator< T, Dim >::finishScalarCode().

template<class T, unsigned Dim>
const NDIndex<Dim>& BareField< T, Dim >::getDomain void   )  const [inline]
 

Definition at line 156 of file BareField.h.

Referenced by PatchBC< T, D, M, C >::apply(), ParallelPeriodicFace< T, D, M, C >::apply(), assign(), CalcParallelPeriodicDomain(), ComponentFunctionFaceBCApply(), ComponentLinearExtrapolateFaceBCApply(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateFaceBCApply(), FieldView< T, Dim, Mesh, Centering >::FieldView(), IndexedBareFieldIterator< T, Dim >::FillGCIfNecessary(), FunctionFaceBCApply(), LinearExtrapolateFaceBCApply(), PeriodicFaceBCApply(), FieldPrint< T, Dim >::print(), FieldDebugPrint< T, Dim >::print(), sfp1(), sfp2(), sfp3(), and BareField< T, Dim >::write().

template<class T, unsigned Dim>
const GuardCellSizes<Dim>& BareField< T, Dim >::getGC  )  const [inline]
 

Definition at line 150 of file BareField.h.

Referenced by BareField< T, Dim >::fillGuardCells(), BareField< T, Dim >::leftGuard(), BareField< T, Dim >::rightGuard(), and FFT< CCTransform, Dim, T >::transform().

template<class T, unsigned Dim>
const GuardCellSizes<Dim>& BareField< T, Dim >::getGuardCellSizes  )  const [inline]
 

Definition at line 151 of file BareField.h.

Referenced by PatchBC< T, D, M, C >::apply(), ParallelPeriodicFace< T, D, M, C >::apply(), ComponentFunctionFaceBCApply(), ComponentLinearExtrapolateFaceBCApply(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateFaceBCApply(), FunctionFaceBCApply(), LinearExtrapolateFaceBCApply(), PeriodicFaceBCApply(), and FieldDebugPrint< T, Dim >::print().

template<class T, unsigned Dim>
const Index& BareField< T, Dim >::getIndex unsigned  d  )  const [inline]
 

Definition at line 155 of file BareField.h.

template<class T, unsigned Dim>
Layout_t& BareField< T, Dim >::getLayout  )  const [inline]
 

Definition at line 135 of file BareField.h.

Referenced by BareField< T, Dim >::accumGuardCells(), ConejoBalancer::addMaterial(), CalcIndexedReceive(), SubFieldTraits< T, Dim, SIndex< Dim >, SOffset< Dim > >::construct(), SubFieldTraits< T, Dim, SIndex< Dim >, NDIndex< Dim > >::construct(), FieldDebugWriteb(), IndexedBareFieldIterator< T, Dim >::FillGCIfNecessary(), BareField< T, Dim >::fillGuardCells(), fp1(), fp2(), fp3(), BareField< T, Dim >::getDomain(), BareField< T, Dim >::getIndex(), ggfp1(), ggfp2(), ggfp3(), PawsFieldData< T, Dim, M, C >::initialize(), makeMesh(), DiscField< Dim >::read(), PawsFieldData< T, Dim, M, C >::resize(), sfp1(), sfp2(), sfp3(), FFT< CCTransform, Dim, T >::transform(), PawsFieldData< T, Dim, M, C >::update(), and DiscField< Dim >::write().

template<class T, unsigned Dim>
void BareField< T, Dim >::getsingle const NDIndex< Dim > &  ,
T & 
const
 

Referenced by IndexedBareField< T, Dim, Brackets >::getsingle().

template<class T, unsigned Dim>
void BareField< T, Dim >::initialize Layout_t ,
const GuardCellSizes< Dim > & 
 

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

template<class T, unsigned Dim>
void BareField< T, Dim >::initialize Layout_t  ) 
 

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

Referenced by Field< T, Dim, M, C >::initialize().

template<class T, unsigned Dim>
bool BareField< T, Dim >::isDirty  )  const [inline]
 

Definition at line 120 of file BareField.h.

Referenced by assign(), BareField< T, Dim >::Compress(), BareField< T, Dim >::fillGuardCellsIfNotDirty(), ParticleAttrib< T >::gather(), and BareField< T, Dim >::prepareForScalarCode().

template<class T, unsigned Dim>
unsigned BareField< T, Dim >::leftGuard unsigned  d  )  const [inline]
 

Definition at line 152 of file BareField.h.

Referenced by PatchBC< T, D, M, C >::apply(), CalcParallelPeriodicDomain(), FieldDebugWriteb(), ggfp1(), ggfp2(), ggfp3(), PeriodicFaceBCApply(), sfp1(), sfp2(), and sfp3().

template<class T, unsigned Dim>
T& BareField< T, Dim >::localElement const NDIndex< Dim > &   )  const
 

template<class T, unsigned Dim>
iterator BareField< T, Dim >::MakeExpression  )  const [inline]
 

Definition at line 333 of file BareField.h.

template<class T, unsigned Dim>
virtual void BareField< T, Dim >::notifyUserOfDelete UserList  )  [virtual]
 

Implements User.

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

template<class T, unsigned Dim>
template<class B>
const BareField<T,Dim>& BareField< T, Dim >::operator= const PETE_Expr< B > &  x  )  [inline]
 

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

Definition at line 184 of file BareField.h.

template<class T, unsigned Dim>
template<class X>
const BareField<T,Dim>& BareField< T, Dim >::operator= const BareField< X, Dim > &  x  )  [inline]
 

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

Definition at line 175 of file BareField.h.

template<class T, unsigned Dim>
const BareField<T,Dim>& BareField< T, Dim >::operator= const BareField< T, Dim > &  x  )  [inline]
 

Definition at line 167 of file BareField.h.

template<class T, unsigned Dim>
const BareField<T,Dim>& BareField< T, Dim >::operator= x  )  [inline]
 

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

Definition at line 159 of file BareField.h.

template<class T, unsigned Dim>
SubBareField<T,Dim,SIndex<Dim> > BareField< T, Dim >::operator[] const SIndex< Dim > &   ) 
 

Reimplemented in Field< T, Dim, Mesh, Centering >.

template<class T, unsigned Dim>
IndexedBareField<T,Dim,Dim> BareField< T, Dim >::operator[] const NDIndex< Dim > &  nidx  ) 
 

Reimplemented in Field< T, Dim, Mesh, Centering >.

template<class T, unsigned Dim>
IndexedBareField<T,Dim,1> BareField< T, Dim >::operator[] int  i  ) 
 

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

template<class T, unsigned Dim>
IndexedBareField<T,Dim,1> BareField< T, Dim >::operator[] const Index idx  ) 
 

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

template<class T, unsigned Dim>
void BareField< T, Dim >::prepareForScalarCode bool  tryfill = true  )  [inline]
 

Definition at line 266 of file BareField.h.

Referenced by BareFieldIterator< T, Dim >::prepareForScalarCode().

template<class T, unsigned Dim>
virtual void BareField< T, Dim >::Repartition UserList  )  [virtual]
 

Implements FieldLayoutUser.

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

template<class T, unsigned Dim>
unsigned BareField< T, Dim >::rightGuard unsigned  d  )  const [inline]
 

Definition at line 153 of file BareField.h.

Referenced by PatchBC< T, D, M, C >::apply(), CalcParallelPeriodicDomain(), ComponentFunctionFaceBCApply(), ComponentLinearExtrapolateFaceBCApply(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateFaceBCApply(), FieldDebugWriteb(), FunctionFaceBCApply(), LinearExtrapolateFaceBCApply(), and PeriodicFaceBCApply().

template<class T, unsigned Dim>
void BareField< T, Dim >::setCompression bool  compress  )  [inline]
 

Definition at line 211 of file BareField.h.

Referenced by BareField< T, Dim >::finishScalarCode(), and BareField< T, Dim >::prepareForScalarCode().

template<class T, unsigned Dim>
void BareField< T, Dim >::setDirtyFlag  )  [inline]
 

Definition at line 121 of file BareField.h.

Referenced by assign(), and BareField< T, Dim >::finishScalarCode().

template<class T, unsigned Dim>
void BareField< T, Dim >::setGuardCells const T &   )  const
 

Referenced by ParticleAttrib< T >::scatter(), and scatter().

template<class T, unsigned Dim>
ac_id_larray::size_type BareField< T, Dim >::size_if  )  const [inline]
 

Definition at line 108 of file BareField.h.

Referenced by ConejoBalancer::addMaterial().

template<class T, unsigned Dim>
void BareField< T, Dim >::Uncompress  )  const
 

Referenced by ParticleAttrib< T >::gather(), Cartesian< Dim, MFLOAT >::getDeltaCellField(), ParticleAttrib< T >::scatter(), scatter(), and BareField< T, Dim >::setCompression().

template<class T, unsigned Dim>
void BareField< T, Dim >::write char *   )  const
 

template<class T, unsigned Dim>
void BareField< T, Dim >::write ostream &   ) 
 

template<class T, unsigned Dim>
void BareField< T, Dim >::writeb char *   )  const
 


Friends And Related Function Documentation

template<class T, unsigned Dim>
friend class BareFieldIterator< T, Dim > [friend]
 

Reimplemented in Field< T, Dim, M, C >, and Field< T, Dim, Mesh, Centering >.

Definition at line 340 of file BareField.h.


Member Data Documentation

template<class T, unsigned Dim>
ac_id_larray BareField< T, Dim >::Locals_ac [protected]
 

Definition at line 337 of file BareField.h.

Referenced by BareField< T, Dim >::BareField(), BareField< T, Dim >::begin_if(), BareField< T, Dim >::end_if(), Field< T, Dim, M, C >::Repartition(), BareField< T, Dim >::Repartition(), and BareField< T, Dim >::size_if().


The documentation for this class was generated from the following files:
Generated on Mon Jan 16 14:34:19 2006 for IPPL by  doxygen 1.4.6