This function returns the position of i, taking into account boundary conditions. More...
#include "Carmen.h"
Functions | |
int | BC (int i, int AxisNo, int N) |
Returns the position of i taking into account the boundary conditions in the direction AxisNo. The number of points in this direction is N. Example: for AxisNo=1 and for N=256, i must be between 0 and 255. If i=-1, the function returns 255 for periodic boundary conditions and 0 for Neumann boundary conditions. More... | |
This function returns the position of i, taking into account boundary conditions.
int BC | ( | int | i, |
int | AxisNo, | ||
int | N = (1<< ScaleNb) |
||
) |
Returns the position of i taking into account the boundary conditions in the direction AxisNo. The number of points in this direction is N.
Example: for AxisNo=1 and for N=256, i must be between 0 and 255. If i=-1, the function returns 255 for periodic boundary conditions and 0 for Neumann boundary conditions.
i | Position |
AxisNo | Axis of interest |
N | Defaults to (1<<ScaleNb). |