It is also an error if the chop_pnt is an end node of the Box. If type(dir) = NODE, the chop_pnt is included in both Boxes but is the only point in common. It is an ERROR if chop_pnt is the low end of the orig Box. If type(dir) = CELL, the Boxes are disjoint with the chop_pnt included in the high end (new Box). The modified Box is the low end, the returned Box is the high end. The union of the two is the original Box. Operator- (const IntVect &v) const noexceptĬhop the Box at the chop_pnt in the dir direction returns one Box, modifies the object Box. Operator+ (const IntVect &v) const noexcept Modify Box to that of the minimum Box containing both the original Box and the argument. Return Box that is intersection of this Box and argument. Operator& (const Box &rhs) const noexcept More.Ĭonvert to CELL type in given direction. More.Ĭonvert to CELL type in all directions. More.Ĭonvert to NODE type in given direction. More.Ĭonvert to NODE type in all directions. This may change the Box coordinates: type CELL -> NODE : increase coordinate by one on high end type NODE -> CELL : reduce coordinate by one on high end other type mappings make no change. More.Ĭonvert the Box from the current type into the argument type. NOTE: This will yield an illegal Box if n_cells NODE : increase coordinate by one on high end type NODE -> CELL : reduce coordinate by one on high end other type mappings make no change. Set the entire range in a given direction, starting at sm_index with length n_cells. SetRange ( int dir, int sm_index, int n_cells=1) noexcept SetSmall ( int dir, int sm_index) noexcept index(smallend) -> 0, bigend would return numPts()-1. Returns offset of point from smallend i.e. dir is modified to give direction with shortest side: 0.SPACEDIM-1. dir is modified to give direction with longest side: 0.SPACEDIM-1. This is identical to numPts() for CELL centered Box otherwise, numPts() > volume(). Return the volume, in indexing space, of region enclosed by this Box. This is intended for use only in diagnostic messages. Returns the number of points contained in the Box. Returns true if Box is cell-centered in all indexing directions. Operator>= (const Box &rhs) const noexcept Returns true if Boxes differ (including type). Returns true if Boxes are identical (including type). It is an error if they have different types. Returns true is Boxes same size, ie translates of each other. It is an error if the Boxes have different types. Returns true if Boxes have non-null intersections. Strictly_contains ( int i, int, int) const noexcept Returns true if argument is strictly contained within Box. Strictly_contains (const Box &b) const noexcept Strictly_contains (const IntVect &p) const noexcept Returns true if argument is contained within Box. More.Ĭontains ( int i, int, int) const noexcept More.Ĭontains (const IntVect &p) const noexcept More.Ĭhecks if it is a proper Box (including a valid type). Returns the coordinate normal to given face. Operator ( Orientation face) const noexcept Returns a constant pointer the array of high end coordinates. Returns a constant pointer the array of low end coordinates. Return the length of the Box in given direction. Returns the indexing type in the specified direction. More.ĪMREX_GPU_HOST_DEVICE IndexType::CellIndex Returns the coordinate of the high end in the given direction. Returns the coordinate of the low end in the given direction. More.īox (const IntVect &small, const IntVect &big, IndexType t) noexceptĬonstruct dimension specific Boxes. small and big are expected to be consistent with given type. More.īox (const IntVect &small, const IntVect &big, const IntVect &typ) noexceptĬonstruct Box with given type. More.īox (const IntVect &small, const int *vec_len) noexceptĬonstruct box with specified lengths. A Rectangular Domain on an Integer Lattice.īox (const IntVect &small, const IntVect &big) noexceptĬonstruct cell-centered type Box.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |