Dune Core Modules (2.8.0)
Dune::TensorProductCoordinates< ct, dim > Class Template Reference
Coordinate container for a tensor product YaspGrid. More...
#include <dune/grid/yaspgrid/coordinates.hh>
Public Types | |
typedef ct | ctype |
export the coordinate type | |
Public Member Functions | |
TensorProductCoordinates () | |
the default constructor | |
TensorProductCoordinates (const std::array< std::vector< ct >, dim > &c, const std::array< int, dim > &offset) | |
construct a container with all necessary information More... | |
ct | meshsize (int d, int i) const |
ct | coordinate (int d, int i) const |
int | size (int d) const |
TensorProductCoordinates< ct, dim > | refine (std::bitset< dim > ovlp_low, std::bitset< dim > ovlp_up, int overlap, bool keep_ovlp) const |
void | print (std::ostream &s) const |
print information on this container | |
Static Public Attributes | |
static const int | dimension = dim |
export dimension | |
Detailed Description
template<class ct, int dim>
class Dune::TensorProductCoordinates< ct, dim >
class Dune::TensorProductCoordinates< ct, dim >
Coordinate container for a tensor product YaspGrid.
- Template Parameters
-
ct the coordinate type dim the dimension of the grid
Constructor & Destructor Documentation
◆ TensorProductCoordinates()
template<class ct , int dim>
|
inline |
construct a container with all necessary information
- Parameters
-
c the array of coordinate vectors offset the offset between global origin and processor origin the size information is deduced from c. Storing offset allows for use of global coordinates in the YaspGrid code.
Member Function Documentation
◆ coordinate()
template<class ct , int dim>
|
inline |
- Returns
- a coordinate given a direction and an index
- Parameters
-
d the direction to be used i the global coordinate index
◆ meshsize()
template<class ct , int dim>
|
inline |
- Returns
- the meshsize in given direction at given position
- Parameters
-
d the direction to be used i the global coordinate index where to return the meshsize
◆ refine()
template<class ct , int dim>
|
inline |
- Returns
- a container that represents the same grid after one step of uniform refinement
- Parameters
-
ovlp_low whether we have an overlap area at the lower processor boundary ovlp_up whether we have an overlap area at the upper processor boundary overlap the size of the overlap region keep_ovlp the refinement option parameter to be used
◆ size()
template<class ct , int dim>
|
inline |
- Returns
- the size in given direction
- Parameters
-
d the direction to be used
The documentation for this class was generated from the following file:
- dune/grid/yaspgrid/coordinates.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 22, 23:30, 2024)