PLUTO  4.4-patch2
Functions
mappers3D.c File Reference

3D wrapper for conservative/primitive conversion. More...

#include "pluto.h"

Functions

int ConsToPrim3D (Data_Arr U, Data_Arr V, uint16_t ***flag, RBox *box)
 
void PrimToCons3D (Data_Arr V, Data_Arr U, RBox *box)
 

Detailed Description

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

Function Documentation

◆ 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]Upointer to 3D array of conserved variables, with array indexing [k][j][i][nv]
[out]Vpointer to 3D array of primitive variables, with array indexing [nv][k][j][i]
[in,out]flagpointer to 3D array of flags.
[in]boxpointer 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]Vpointer to 3D array of primitive variables, with array indexing [nv][k][j][i]
[out]Upointer to 3D array of conserved variables, with array indexing [k][j][i][nv]
[in]boxpointer to RBox structure containing the domain portion over which conversion must be performed.