PLUTO
|
Set/retrieve output data attributes. More...
#include "pluto.h"
Go to the source code of this file.
Macros | |
#define | VTK_VECTOR_DUMP NO |
Functions | |
void | SetOutput (Data *d, Runtime *runtime) |
int | SetDumpVar (char *var_name, int out_type, int flag) |
double *** | GetUserVar (char *var_name) |
Variables | |
static Output * | all_outputs |
Set/retrieve output data attributes.
The function SetOutput() sets, for each output data type (DBL, FLT, VTK etc..) the default attributes of the corresponding Output structures. These include the variable name, a pointer to the actual 3D array, the centering of the variable (center/staggered), a conditional inclusion flag (telling if the corresponding variable has to be written in the specified format), and so on.
The function SetDumpVar() can be used to include or exclude a given variable to be written using a particular output format.
The function GetUserVar() returns the memory address to a user-defined 3D array.
Definition in file set_output.c.
#define VTK_VECTOR_DUMP NO |
Definition at line 32 of file set_output.c.
double*** GetUserVar | ( | char * | var_name | ) |
return a pointer to the 3D array associated with the variable named 'var_name'.
Definition at line 251 of file set_output.c.
int SetDumpVar | ( | char * | var_name, |
int | out_type, | ||
int | flag | ||
) |
Include ('flag == YES') or exclude ('flag == NO') the variable associated to 'var_name' in or from the output type 'out_type'. If 'out_type' corresponds to an image (ppm or png), create a correspdonding Image structure.
[in] | var_name | the name of the variable (e.g. "rho", "vx1",...) |
[in] | out_type | select the output type (e.g., DBL_OUTPUT, VTK_OUTPUT, and so forth) |
[in] | flag | an integer values (YES/NO). |
Definition at line 211 of file set_output.c.
Set default attributes (variable names, pointers to data structures, filename extensions, etc...) of the output structures.
[in] | d | pointer to Data structure |
[in] | runtime | pointer to Runtime structure |
Definition at line 37 of file set_output.c.
|
static |
Definition at line 35 of file set_output.c.