PLUTO
|
Basic RBox database. More...
#include "pluto.h"
Go to the source code of this file.
Functions | |
void | SetRBox (void) |
RBox * | GetRBox (int side, int vpos) |
Variables | |
static RBox | rbox_center [8] |
static RBox | rbox_x1face [8] |
static RBox | rbox_x2face [8] |
static RBox | rbox_x3face [8] |
Basic RBox database.
The function SetRBox() defines an array of predefined RBox structures needed to loop through different portions (or regions) of the computational domain.
Each array of structures has 8 elements corresponding to the six sides of the computational domain (X1_BEG, ... , X3_END) and, in addition, we also define the DOM and TOT array indices to loop over the active computational zones or over the total computational domain (interior + ghost zones), respectively.
The function GetRBox() can be used to retrieve a pointer to a RBox structure given the computational side and the variable position.
Definition in file rbox.c.
RBox* GetRBox | ( | int | side, |
int | vpos | ||
) |
Returns a pointer to a local static RBox
[in] | side | the region of the computational domain where the box is required. There 8 possible values: X1_BEG, ... , X3_END, DOM, TOT. |
[in] | vpos | the variable position inside the cell: CENTER, X1FACE, X2FACE or X3FACE. |
Definition at line 232 of file rbox.c.
void SetRBox | ( | void | ) |
Definition at line 33 of file rbox.c.