#include <Skin.hpp>
◆ Skin() [1/2]
◆ Skin() [2/2]
Skin::Skin |
( |
const Skin & |
r | ) |
|
◆ ~Skin()
◆ _cellAdd()
int Skin::_cellAdd |
( |
int |
ipos, |
|
|
double |
energy |
|
) |
| |
|
private |
Add a cell to the skin (if not already in the skin)
- Returns
- Error returned code
- Parameters
-
[in] | ipos | Cell location |
[in] | energy | Energy for the new cell |
◆ _cellAlreadyFilled()
int Skin::_cellAlreadyFilled |
( |
int |
ipos | ) |
|
|
private |
Checks if a cell already belongs to the skin
- Returns
- Rank within the skin or -1 if the cell does not belong to the skin
- Parameters
-
◆ _cellDelete()
void Skin::_cellDelete |
( |
int |
rank | ) |
|
|
private |
Delete a cell from the skin
- Parameters
-
[in] | rank | Rank of the cell to be deleted |
◆ _cellModify()
void Skin::_cellModify |
( |
int |
rank, |
|
|
double |
energy |
|
) |
| |
|
private |
Modify the energy for a cell which already belongs to the skin
- Parameters
-
[out] | rank | Location of the cell in the skin |
[in] | energy | Additional energy for the new cell |
◆ _getNDim()
int Skin::_getNDim |
( |
| ) |
const |
|
private |
◆ _getWeight()
double Skin::_getWeight |
( |
int |
ipos, |
|
|
int |
idir |
|
) |
| |
|
private |
Returns the weight for a given cell and direction
- Returns
- The weight
- Parameters
-
[in] | ipos | Absolute grid index of the input grid node |
[in] | idir | Rank of the direction |
◆ _gridShift()
int Skin::_gridShift |
( |
const VectorInt & |
indg0, |
|
|
int |
dir |
|
) |
| |
|
private |
Returns the shifted node of a skin
- Returns
- Absolute sample address (or ITEST)
- Parameters
-
[in] | indg0 | Array of directional grid indices |
[in] | dir | Rank of the direction |
◆ getNext()
void Skin::getNext |
( |
int * |
rank, |
|
|
int * |
ipos |
|
) |
| |
Find the next cell at random within the skin
- Parameters
-
[out] | rank | Location of the cell in the skin |
[out] | ipos | Cell location |
◆ gridShift()
int Skin::gridShift |
( |
int |
lec, |
|
|
int |
dir |
|
) |
| |
Returns the shifted node of a skin
- Returns
- The absolute sample address
- Parameters
-
[in] | lec | Absolute grid index of the input grid node |
[in] | dir | Rank of the direction |
◆ init()
int Skin::init |
( |
bool |
verbose = false | ) |
|
Initialize the skin
- Returns
- Error returned code
- Parameters
-
◆ operator=()
Skin & Skin::operator= |
( |
const Skin & |
r | ) |
|
◆ remains()
int Skin::remains |
( |
bool |
verbose = false | ) |
|
Returns the number of cells still to be processed
- Returns
- Returns the number of cells still to be processed
◆ skinPrint()
Print the computing information concerning the skin algorithm
◆ unstack()
int Skin::unstack |
( |
int |
rank0, |
|
|
int |
ipos0 |
|
) |
| |
Suppress the current cell from the skin
- Returns
- Error return code
- Parameters
-
[in] | rank0 | Rank of the current cell in the skin |
[in] | ipos0 | Cell location |
◆ _address
◆ _date
◆ _dbgrid
◆ _energy
◆ _nval
◆ _nvalMax
◆ _nxyz
◆ _skf
◆ _total
◆ _totalMax
The documentation for this class was generated from the following files: