![]() |
APFEL 4.8.0
A PDF evolution library in C++
|
The Grid class defines ab object that is essentially a collection of "SubGrid" objects plus other global parameters. This class also includes all the relevant methods for the manipulation of the SubGrids. More...
#include <grid.h>
Public Member Functions | |
Grid (std::vector< SubGrid > const &grs) | |
The Grid constructor. | |
Getters | |
int | nGrids () const |
std::vector< std::pair< int, int > > const & | SubToJointMap () const |
std::vector< std::vector< int > > const & | JointToSubMap () const |
std::vector< int > const & | TransitionPoints () const |
std::vector< SubGrid > const & | GetSubGrids () const |
SubGrid const & | GetSubGrid (int ig) const |
SubGrid const & | GetJointGrid () const |
void | Print () const |
Print the Grid object. | |
Comparison operators | |
Collection of operators for comparing grid objects | |
bool | operator== (Grid const &g) const |
bool | operator!= (Grid const &g) const |
Private Member Functions | |
SubGrid | CreateJointGrid () |
Fill in the joint grid object with the appropriate grid nodes. | |
Private Attributes | |
std::vector< std::pair< int, int > > | _SubToJointMap |
Vector of pairs corresponding to grid- and node-indices on the subgrids. | |
std::vector< std::vector< int > > | _JointToSubMap |
Vector of indices from the subgrids to the joint grid. | |
std::vector< int > | _TransPoints |
Vector of indices corresponding to the transition from one subgrid to the other. | |
std::vector< SubGrid > | _GlobalGrid |
Vector with sub-grids. | |
std::unique_ptr< SubGrid > | _JointGrid |
Container for the joint grid. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, Grid const &gr) |
Overload the << operator to print the parameters of the grid. | |
The Grid class defines ab object that is essentially a collection of "SubGrid" objects plus other global parameters. This class also includes all the relevant methods for the manipulation of the SubGrids.
apfel::Grid::Grid | ( | std::vector< SubGrid > const & | grs | ) |
The Grid constructor.
grs | vector of subgrids |
|
private |
Fill in the joint grid object with the appropriate grid nodes.
|
inline |
|
inline |
|
inline |
bool apfel::Grid::operator!= | ( | Grid const & | g | ) | const |
bool apfel::Grid::operator== | ( | Grid const & | g | ) | const |
|
inline |
Print the Grid object.
|
inline |
|
inline |
|
friend |
Overload the << operator to print the parameters of the grid.
|
private |
Vector with sub-grids.
|
private |
Container for the joint grid.
|
private |
Vector of indices from the subgrids to the joint grid.
|
private |
Vector of pairs corresponding to grid- and node-indices on the subgrids.
|
private |
Vector of indices corresponding to the transition from one subgrid to the other.