3D wrapper for conservative/primitive conversion.
More...
Provide 3D wrappers to the standard 1D conversion functions ConsToPrim() and PrimToCons().
- Authors
- A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
- Date
- Jan 27, 2020
◆ ConsToPrim3D()
int ConsToPrim3D |
( |
Data_Arr |
U, |
|
|
Data_Arr |
V, |
|
|
uint16_t *** |
flag, |
|
|
RBox * |
box |
|
) |
| |
Convert a 3D array of conservative variables U
to an array of primitive variables V
. Note that [nv]
is the fastest running index for U
while it is the slowest running index for V
.
- Parameters
-
[in] | U | pointer to 3D array of conserved variables, with array indexing [k][j][i][nv] |
[out] | V | pointer to 3D array of primitive variables, with array indexing [nv][k][j][i] |
[in,out] | flag | pointer to 3D array of flags. |
[in] | box | pointer to RBox structure containing the domain portion over which conversion must be performed. |
◆ PrimToCons3D()
void PrimToCons3D |
( |
Data_Arr |
V, |
|
|
Data_Arr |
U, |
|
|
RBox * |
box |
|
) |
| |
Convert a 3D array of primitive variables V
to an array of conservative variables U
. Note that [nv]
is the fastest running index for U
while it is the slowest running index for V
.
- Parameters
-
[in] | V | pointer to 3D array of primitive variables, with array indexing [nv][k][j][i] |
[out] | U | pointer to 3D array of conserved variables, with array indexing [k][j][i][nv] |
[in] | box | pointer to RBox structure containing the domain portion over which conversion must be performed. |