|
Schnek
|
#include <boundary.hpp>
Public Types | |
| enum | bound { Min, Max } |
| An enum specifying the location of a ghost domain. | |
| typedef Range< int, rank, CheckingPolicy > | DomainType |
| The range type that contains the domain size. | |
| typedef DomainType::LimitType | LimitType |
| The array type that contains the limits of the domain. | |
Public Member Functions | |
| Boundary () | |
| Boundary (const LimitType &lo, const LimitType &hi, int delta_) | |
| Boundary (DomainType &size_, int delta_) | |
| int | getDelta () |
| const DomainType & | getDomain () |
| DomainType | getGhostDomain (int dim, bound b) |
| DomainType | getGhostSourceDomain (int dim, bound b) |
| DomainType | getBoundaryDomain (int dim, bound b, bool stagger) |
| DomainType | getInnerDomain () |
| template<class GridType > | |
| SubGrid< GridType, CheckingPolicy > | getGhostBoundary (int dim, bound b, GridType &grid) |
| template<typename T , template< int > class CheckingPolicy2, template< typename, int > class StoragePolicy> | |
| SubGrid< Field< T, rank, CheckingPolicy2, StoragePolicy >, CheckingPolicy > | getGhostBoundary (int dim, bound b, Field< T, rank, CheckingPolicy2, StoragePolicy > &field) |
A rectangular region that is aware of ghost cells.
Methods are provided that return Ranges to the boundary domains on each side of the main domain.
| schnek::Boundary< rank, CheckingPolicy >::Boundary | ( | ) |
Construct a zero boundary
| schnek::Boundary< rank, CheckingPolicy >::Boundary | ( | const LimitType & | lo, |
| const LimitType & | hi, | ||
| int | delta_ | ||
| ) |
Construct a boundary supplying lo and hi coordinates and the number of ghost cells. The domain given should include the ghost cells.
| lo | the lower corner of the domain, including the ghost cells |
| hi | the upper corner of the domain, including the ghost cells |
| delta_ | the number of ghost cells |
| schnek::Boundary< rank, CheckingPolicy >::Boundary | ( | DomainType & | size_, |
| int | delta_ | ||
| ) |
Constrauct a boundary supplying a reactangular domain and the number of ghost cells. The domain given should include the ghost cells.
| size_ | the rectangular domain, including the ghost cells |
| delta_ | the number of ghost cells |
| DomainType schnek::Boundary< rank, CheckingPolicy >::getBoundaryDomain | ( | int | dim, |
| bound | b, | ||
| bool | stagger | ||
| ) |
Returns the boundary domain, a rectangular region outside the inner domain. The bounadry domain has a thickness determined by the number of ghost cells. Unlike the ghost domain, the boundary domain is aware of grid staggering.
| dim | the dimanesion index of the side on which the ghost domain lies. |
| b | the location of the gost domain. Min will return the lower ghost domain and Max will return the upper ghost domain |
|
inline |
The number of ghost cells
|
inline |
Returns the original domain, including the ghost cells
| SubGrid<GridType, CheckingPolicy> schnek::Boundary< rank, CheckingPolicy >::getGhostBoundary | ( | int | dim, |
| bound | b, | ||
| GridType & | grid | ||
| ) |
Returns the sub-grid containing only the ghost cells. The ghost domain has a thickness given by the number of ghost cells, delta.
| dim | the dimanesion index of the side on which the ghost domain lies. |
| b | the location of the gost domain. Min will return the lower ghost domain and Max will return the upper ghost domain |
| SubGrid<Field<T,rank,CheckingPolicy2,StoragePolicy>, CheckingPolicy> schnek::Boundary< rank, CheckingPolicy >::getGhostBoundary | ( | int | dim, |
| bound | b, | ||
| Field< T, rank, CheckingPolicy2, StoragePolicy > & | field | ||
| ) |
Returns sub-grid containing only the boundary domain. The bounadry domain has a thickness determined by the number of ghost cells. Unlike the ghost domain, the boundary domain is aware of grid staggering.
| dim | the dimanesion index of the side on which the ghost domain lies. |
| b | the location of the gost domain. Min will return the lower ghost domain and Max will return the upper ghost domain |
| DomainType schnek::Boundary< rank, CheckingPolicy >::getGhostDomain | ( | int | dim, |
| bound | b | ||
| ) |
Returns the ghost domain, a rectangular region outside the inner domain. The ghost domain has a thickness given by the number of ghost cells, delta.
| dim | the dimension index of the side on which the ghost domain lies. |
| b | the location of the ghost domain. Min will return the lower ghost domain and Max will return the upper ghost domain |
| DomainType schnek::Boundary< rank, CheckingPolicy >::getGhostSourceDomain | ( | int | dim, |
| bound | b | ||
| ) |
Returns the inner domain corresponding to the ghost domain of the neighbouring process. The domain has a thickness given by the number of ghost cells, delta.
| dim | the dimension index of the side on which the inner domain lies. |
| b | the location of the inner domain. Min will return the domain on the lower side and Max will return the domain on the upper side |
| DomainType schnek::Boundary< rank, CheckingPolicy >::getInnerDomain | ( | ) |
Returns the inner domain, excluding the ghost cells