A rectangular region in the computational domain in global index coordinates. More...
#include "lparx_copyright.h"
#include "lparx_copyright.h"
#include <iosfwd>
#include <cstdlib>
#include <cassert>
#include "Coords.h"
#include <iostream>
Go to the source code of this file.
Classes | |
class | BBox |
Implementation of a rectangular region in the computational domain in global index coordinates. More... | |
Defines | |
#define | LOWERBOUND (-1000000000) |
#define | UPPERBOUND ( 1000000000) |
#define | BBoxNULL ((BBox *) 0) |
Functions | |
std::istream & | operator>> (std::istream &s, BBox &bb) |
std::ostream & | operator<< (std::ostream &s, const BBox &bb) |
std::ifstream & | operator>> (std::ifstream &s, BBox &bb) |
std::ofstream & | operator<< (std::ofstream &s, const BBox &bb) |
std::stringstream & | operator>> (std::stringstream &s, BBox &bb) |
std::stringstream & | operator<< (std::stringstream &s, const BBox &bb) |
Coords & | upper (BBox &bb) |
int | upper (BBox &bb, const int i) |
Coords & | lower (BBox &bb) |
int | lower (BBox &bb, const int i) |
Coords & | stepsize (BBox &bb) |
int | stepsize (BBox &bb, const int i) |
Coords | extents (BBox &bb) |
int | extents (BBox &bb, const int i) |
int | size (BBox &bb) |
int | inside (BBox &bb, Coords const &c) |
BBox | accrete (BBox const &bbox, Coords const &c) |
BBox | grow (BBox const &bbox, Coords const &c) |
BBox | accrete (BBox const &bbox, const int c) |
BBox | grow (BBox const &bbox, const int c) |
BBox * | accrete (BBox const *const bbox, const int n, const int c) |
BBox * | grow (BBox const *const bbox, const int n, const int c) |
BBox * | accrete (BBox const *const bbox, const int n, Coords const &c) |
BBox * | grow (BBox const *const bbox, const int n, Coords const &c) |
BBox | growupper (BBox const &bbox, const int c) |
BBox | growlower (BBox const &bbox, const int c) |
BBox | growupper (BBox const &bbox, const int d, const int c) |
BBox | growlower (BBox const &bbox, const int d, const int c) |
BBox | growbydim (BBox const &bbox, const short *c) |
BBox | growupperbydim (BBox const &bbox, const short *c) |
BBox | growlowerbydim (BBox const &bbox, const short *c) |
BBox | shrinkbydim (BBox const &bbox, const short *c) |
BBox | shrinkupperbydim (BBox const &bbox, const short *c) |
BBox | shrinklowerbydim (BBox const &bbox, const short *c) |
BBox | shiftabs (BBox const &bb, const int c) |
BBox | shiftabs (BBox const &bb, Coords const &c) |
BBox | shift (BBox const &bb, const int c) |
BBox | shift (BBox const &bb, Coords const &c) |
BBox | shiftabs (BBox const &bbox, const int d, const int c) |
BBox | shift (BBox const &bbox, const int d, const int c) |
BBox | coarsen (BBox const &bbox, const int by) |
BBox | coarsen (BBox const &bbox, Coords const by) |
BBox | coarsen (BBox const &bbox, const int d, const int by) |
BBox | refine (const BBox &bbox, const int by) |
BBox | refine (const BBox &bbox, const Coords &by) |
BBox | refine (const BBox &bbox, const int by, const int olap) |
BBox | refine (const BBox &bbox, const int by, const short *olap) |
BBox | refine (const BBox &bbox, const int d, const int by, const int olap) |
A rectangular region in the computational domain in global index coordinates.
This class is sort of an adaptation and extension of the from Class RegionX of LPARX developed by Scott Kohn (skohn-at-cs.ucsd.edu)
#define BBoxNULL ((BBox *) 0) |
Referenced by GridHierarchy::DAGH_CreateGridUnitList(), operator<<(), and operator>>().
#define LOWERBOUND (-1000000000) |
Referenced by BBox::setempty().
#define UPPERBOUND ( 1000000000) |
Referenced by BBox::setempty().
References BBox::BBox(), BBox::empty(), BBox::lower(), BBox::stepsize(), and BBox::upper().
References BBox::BBox(), BBox::empty(), BBox::lower(), BBox::stepsize(), and BBox::upper().
Referenced by accrete().
References BBox::coarsen(), and BBox::empty().
References BBox::coarsen(), and BBox::empty().
int extents | ( | BBox & | bb, | |
const int | i | |||
) | [inline] |
References BBox::extents().
References BBox::extents().
References BBox::BBox(), BBox::empty(), BBox::lower(), BBox::stepsize(), and BBox::upper().
References BBox::BBox(), BBox::empty(), BBox::lower(), BBox::stepsize(), and BBox::upper().
Referenced by GridBox::gbBBox(), grow(), GridUnit::guBBox(), and GridUnit::guBBoxAbs().
References BBox::empty(), BBox::lower(), BBox::rank, BBox::stepsize(), and BBox::upper().
References BBox::BBox(), BBox::empty(), BBox::lower(), BBox::stepsize(), and BBox::upper().
References BBox::BBox(), BBox::empty(), BBox::lower(), BBox::stepsize(), and BBox::upper().
References BBox::empty(), BBox::lower(), BBox::rank, and BBox::stepsize().
References BBox::BBox(), BBox::empty(), BBox::lower(), BBox::stepsize(), and BBox::upper().
References BBox::BBox(), BBox::empty(), BBox::lower(), BBox::stepsize(), and BBox::upper().
Referenced by GridHierarchy::DAGH_RecomposeHierarchy(), GridBox::gbBBox(), GridUnit::guBBox(), and GridUnit::guBBoxAbs().
References BBox::empty(), BBox::rank, BBox::stepsize(), and BBox::upper().
Referenced by GridBox::gbBBox(), GridUnit::guBBox(), and GridUnit::guBBoxAbs().
References BBox::inside().
int lower | ( | BBox & | bb, | |
const int | i | |||
) | [inline] |
References BBox::lower().
References BBox::lower().
Referenced by GridHierarchy::DAGH_ComposeHierarchy(), GridHierarchy::DAGH_CreateGridUnitList(), DAGHIO_HDF_NCSA_Read(), partition_all(), and partition_two().
std::ostream& operator<< | ( | std::ostream & | s, | |
const BBox & | bb | |||
) |
References BBox::empty(), BBox::lower(), BBox::rank, BBox::stepsize(), and BBox::upper().
References BBox::empty(), and BBox::refine().
References BBox::empty(), and BBox::refine().
References BBox::empty(), and BBox::refine().
References BBox::empty(), and BBox::refine().
References BBox::empty(), and BBox::refine().
Referenced by GridHierarchy::DAGH_CreateBBoxList(), GridHierarchy::DAGH_RecomposeHierarchy(), GridUnit::guBBox(), and GridUnit::guBBoxAbs().
References BBox::BBox(), BBox::empty(), BBox::lower(), BBox::stepsize(), and BBox::upper().
References BBox::BBox(), BBox::lower(), BBox::stepsize(), and BBox::upper().
References BBox::BBox(), BBox::lower(), BBox::stepsize(), and BBox::upper().
References BBox::BBox(), BBox::empty(), BBox::lower(), BBox::stepsize(), and BBox::upper().
References BBox::BBox(), BBox::lower(), BBox::stepsize(), and BBox::upper().
References BBox::BBox(), BBox::lower(), BBox::stepsize(), and BBox::upper().
Referenced by GridData< Type, 3 >::copy(), GridData< Type, 2 >::copy(), GridData< Type, 1 >::copy(), GridData< Type, 3 >::divide(), GridData< Type, 2 >::divide(), GridData< Type, 1 >::divide(), GridData< Type, 3 >::equals(), GridData< Type, 2 >::equals(), GridData< Type, 1 >::equals(), GridData< Type, 3 >::is_eq(), GridData< Type, 2 >::is_eq(), GridData< Type, 1 >::is_eq(), GridData< Type, 3 >::is_ge(), GridData< Type, 2 >::is_ge(), GridData< Type, 1 >::is_ge(), GridData< Type, 3 >::is_gt(), GridData< Type, 2 >::is_gt(), GridData< Type, 1 >::is_gt(), GridData< Type, 3 >::is_le(), GridData< Type, 2 >::is_le(), GridData< Type, 1 >::is_le(), GridData< Type, 3 >::is_lt(), GridData< Type, 2 >::is_lt(), GridData< Type, 1 >::is_lt(), GridData< Type, 3 >::is_neq(), GridData< Type, 2 >::is_neq(), GridData< Type, 1 >::is_neq(), GridData< Type, 3 >::maximum(), GridData< Type, 2 >::maximum(), GridData< Type, 1 >::maximum(), GridData< Type, 3 >::minimum(), GridData< Type, 2 >::minimum(), GridData< Type, 1 >::minimum(), GridData< Type, 3 >::minus(), GridData< Type, 2 >::minus(), GridData< Type, 1 >::minus(), GridData< Type, 3 >::multiply(), GridData< Type, 2 >::multiply(), GridData< Type, 1 >::multiply(), GridData< Type, 3 >::plus(), GridData< Type, 2 >::plus(), and GridData< Type, 1 >::plus().
References BBox::empty(), BBox::lower(), BBox::rank, BBox::stepsize(), and BBox::upper().
References BBox::empty(), BBox::lower(), BBox::rank, and BBox::stepsize().
References BBox::empty(), BBox::rank, BBox::stepsize(), and BBox::upper().
Referenced by GridHierarchy::wholebbox().
int size | ( | BBox & | bb | ) | [inline] |
References BBox::size().
Referenced by Vector< DataType, size >::abs(), GridFunction< GFType, dim >::GF_maxval(), GridFunction< GFType, dim >::GF_minval(), GridFunction< GFType, dim >::GF_norm(), GridFunction< GFType, dim >::GF_product(), GridFunction< GFType, dim >::GF_sum(), GridFunction< GFType, dim >::GF_Write(), Vector< DataType, size >::Length(), Vector< DataType, size >::length(), Vector< DataType, size >::max(), Vector< DataType, size >::maxcomp(), Vector< DataType, size >::min(), Vector< DataType, size >::mincomp(), Vector< DataType, size >::operator()(), Vector< DataType, size >::operator-(), operator<<(), Vector< DataType, size >::operator=(), Vector< DataType, size >::operator[](), GridTable::send(), DAGHIOServerSnd::snd_update(), and Vector< DataType, size >::Vector().
int stepsize | ( | BBox & | bb, | |
const int | i | |||
) | [inline] |
References BBox::stepsize().
References BBox::stepsize().
Referenced by DAGHIO_HDF_NCSA_Read(), and GridFunction< GFType, dim >::GF_Restrict().
int upper | ( | BBox & | bb, | |
const int | i | |||
) | [inline] |
References BBox::upper().
References BBox::upper().
Referenced by GridHierarchy::DAGH_ComposeHierarchy(), GridHierarchy::DAGH_CreateGridUnitList(), DAGHIO_HDF_NCSA_Read(), partition_all(), and partition_two().