GraphNode Class Reference

#include <GraphNode.H>

Collaboration diagram for GraphNode:

Collaboration graph
[legend]

List of all members.


Detailed Description

This is a list showing the connectivity of a given cell. This has the special property of also being able to set itself to regular or covered by setting the current nodeimplem pointer to 1 or 0.

Public Member Functions

 GraphNode ()
 ~GraphNode ()
int size () const
void clear ()
bool isRegular () const
bool isCovered () const
bool isIrregular () const
void defineAsRegular ()
void defineAsCovered ()
Vector< FaceIndexgetFaces (const VolIndex &a_vof, const int &a_idir, const Side::LoHiSide &a_sd, const ProblemDomain &a_domain) const
Vector< FaceIndexgetFaces (const IntVect &a_iv, const int &a_idir, const Side::LoHiSide &a_sd, const ProblemDomain &a_domain) const
Vector< VolIndexgetVoFs (const IntVect &a_iv) const
const GraphNodeoperator= (const GraphNode &ebiin)
 GraphNode (const GraphNode &ebiin)
Vector< VolIndexrefine (const VolIndex &a_coarVoF) const
VolIndex coarsen (const VolIndex &a_fineVoF) const
void addIrregularNode (const GraphNodeImplem &a_nodein, int cellIndex)
void addIrregularNode (const GraphNodeImplem &a_nodein)
Vector< Vector< VolIndex > > getVoFSets (const Box &a_box) const
int linearSize () const
void linearOut (void *buffer) const
void linearIn (void *buffer)
void setDefaults ()
 internal use only

Public Attributes

Vector< GraphNodeImplem > * m_cellList

Constructor & Destructor Documentation

GraphNode::GraphNode (  )  [inline]

constructor sets node to regular as default.

References setDefaults().

GraphNode::~GraphNode (  )  [inline]

References clear().

GraphNode::GraphNode ( const GraphNode ebiin  ) 


Member Function Documentation

int GraphNode::size (  )  const

void GraphNode::clear (  )  [inline]

deletes memory if it has been allocated and sets members to 0

References isIrregular(), m_cellList, and setDefaults().

Referenced by defineAsCovered(), defineAsRegular(), and ~GraphNode().

bool GraphNode::isRegular (  )  const [inline]

Return true if the node is regular (m_thisNode==1).

References m_cellList.

Referenced by isIrregular().

bool GraphNode::isCovered (  )  const [inline]

Return true if the node is covered (m_thisNode==0).

References m_cellList.

Referenced by isIrregular().

bool GraphNode::isIrregular (  )  const [inline]

Return true if the node is neither regular or covered.

References isCovered(), and isRegular().

Referenced by clear().

void GraphNode::defineAsRegular (  )  [inline]

Set Node to regular. If previously set to irregular, deletes their memory.

References clear(), and m_cellList.

void GraphNode::defineAsCovered (  )  [inline]

Set Node to covered. If previously set to irregular, deletes their memory.

References clear(), and m_cellList.

Vector<FaceIndex> GraphNode::getFaces ( const VolIndex a_vof,
const int &  a_idir,
const Side::LoHiSide a_sd,
const ProblemDomain a_domain 
) const

Get the faces in the direction and side for the vof in the list. if the vof's cell index is not found in the list, abort. Use the input vof's grid index for a the grid index of the list.

Vector<FaceIndex> GraphNode::getFaces ( const IntVect a_iv,
const int &  a_idir,
const Side::LoHiSide a_sd,
const ProblemDomain a_domain 
) const

Vector<VolIndex> GraphNode::getVoFs ( const IntVect a_iv  )  const

Return all the vofs in the list, using the input intvect for the gridIndex

const GraphNode& GraphNode::operator= ( const GraphNode ebiin  ) 

Vector<VolIndex> GraphNode::refine ( const VolIndex a_coarVoF  )  const

Returns the corresponding set of VoFs from the next finer EBGraph (factor of two refinement). The result is only defined if this { EBGraph} was defined by coarsening.

VolIndex GraphNode::coarsen ( const VolIndex a_fineVoF  )  const

Returns the corresponding VoF from the next coarser EBGraph (same solution location, different index space, factor of two refinement ratio).

void GraphNode::addIrregularNode ( const GraphNodeImplem a_nodein,
int  cellIndex 
)

void GraphNode::addIrregularNode ( const GraphNodeImplem a_nodein  ) 

Vector<Vector<VolIndex> > GraphNode::getVoFSets ( const Box a_box  )  const

get all sets of connected vofs within the box. used in coarsening

int GraphNode::linearSize (  )  const

void GraphNode::linearOut ( void *  buffer  )  const

void GraphNode::linearIn ( void *  buffer  ) 

void GraphNode::setDefaults (  )  [inline]

internal use only

References m_cellList.

Referenced by clear(), and GraphNode().


Member Data Documentation

The connectivity data at this point. If m_thisNode == 0, node is covered. If m_thisNode == 1, node is regular. otherwise, it is a real list.

Referenced by clear(), defineAsCovered(), defineAsRegular(), isCovered(), isRegular(), and setDefaults().


The documentation for this class was generated from the following file:

Generated on Tue Apr 14 14:23:37 2009 for Chombo + EB by  doxygen 1.5.5