Container for equidistant coordinates in a YaspGrid with non-trivial origin.
More...
#include <dune/grid/yaspgrid/coordinates.hh>
|
| | EquidistantOffsetCoordinates () |
| | default constructor More...
|
| |
| | EquidistantOffsetCoordinates (const Dune::FieldVector< ct, dim > &origin, const Dune::FieldVector< ct, dim > &h, const std::array< int, dim > &s) |
| | 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 |
| |
| ct | origin (int d) const |
| |
| EquidistantOffsetCoordinates< 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 More...
|
| |
template<class ct, int dim>
class Dune::EquidistantOffsetCoordinates< ct, dim >
Container for equidistant coordinates in a YaspGrid with non-trivial origin.
- Template Parameters
-
| ct | the coordinate type |
| dim | the dimension of the grid |
◆ ctype
template<class ct, int dim>
export the coordinate type
◆ EquidistantOffsetCoordinates() [1/2]
template<class ct, int dim>
◆ EquidistantOffsetCoordinates() [2/2]
template<class ct, int dim>
construct a container with all necessary information
- Parameters
-
| h | the meshsize in all directions |
| s | the size (in codim 0 elements) of the grid on this processor |
| origin | the coordinate of the lowerleft corner of this grid the size information is kept with this container, because this is the natural way to handle this for a tensorproduct grid. |
◆ coordinate()
template<class ct, int dim>
- 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>
- 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 |
◆ origin()
template<class ct, int dim>
- Returns
- the dth component of the origin
- Parameters
-
| d | the direction to be used |
◆ print()
template<class ct, int dim>
print information on this container
◆ refine()
template<class ct, int dim>
- 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>
- Returns
- the size in given direction
- Parameters
-
| d | the direction to be used |
◆ dimension
template<class ct, int dim>
The documentation for this class was generated from the following file: