31 #ifndef VTK_VECTOR_DUMP
32 #define VTK_VECTOR_DUMP NO
55 all_outputs = runtime->
output;
76 for (nv = 0; nv <
NVAR; nv++){
77 output->
V[nv] = d->
Vc[nv];
97 #if UPDATE_VECTOR_POTENTIAL == YES
100 output->
V[nv] = d->
Ax1;
105 output->
V[nv] = d->
Ax2;
109 output->
V[nv] = d->
Ax3;
116 for (i = 0; i < runtime->
user_var; i++){
118 output->
V[i + nv] = d->
Vuser[
i];
133 switch (output->
type){
135 sprintf (output->
ext,
"dbl");
138 sprintf (output->
ext,
"flt");
141 sprintf (output->
ext,
"dbl.h5");
144 sprintf (output->
ext,
"flt.h5");
147 sprintf (output->
ext,
"vtk");
148 #if VTK_VECTOR_DUMP == YES
152 #if PHYSICS == MHD || PHYSICS == RMHD
160 sprintf (output->
ext,
"tab");
163 sprintf (output->
ext,
"ppm");
167 sprintf (output->
ext,
"png");
229 output = all_outputs +
k;
230 if (output->
type == out_type)
break;
233 for (nv = output->
nvar; nv--; ) {
234 if (strcmp(output->
var_name[nv], var_name) == 0) {
245 print1 (
"! var_name '%s' cannot be set/unset for writing\n",var_name);
260 while (strcmp(all_outputs->
var_name[++indx], var_name)){
261 if (all_outputs->
V[indx] == NULL){
262 print1 (
"! Error: uservar '%s' is not allocated\n");
266 return (all_outputs->
V[indx]);
int user_var
The number of additional user-variables being held in memory and written to disk. ...
double **** Vs
The main four-index data array used for face-centered staggered magnetic fields.
double *** GetUserVar(char *var_name)
double *** V[64]
pointer to arrays being written - same for all
Output output[MAX_OUTPUT_TYPES]
void print1(const char *fmt,...)
int nfile
current number being saved - one per output
char output_dir[256]
The name of the output directory (output_dir for static PLUTO, Output_dir for PLUTO-Chombo) ...
void SetDefaultVarNames(Output *)
long int NX2_TOT
Total number of zones in the X2 direction (boundaries included) for the local processor.
double **** Vc
The main four-index data array used for cell-centered primitive variables.
char user_var_name[128][128]
double *** Ax3
Vector potential component in the direction.
char dir[256]
output directory name
char ext[8]
output extension
long int NX3_TOT
Total number of zones in the X3 direction (boundaries included) for the local processor.
#define ARRAY_4D(nx, ny, nz, nv, type)
static Output * all_outputs
int * dump_var
select vars being written - one per output
#define ARRAY_1D(nx, type)
D_EXPAND(tot/[n]=(double) grid[IDIR].np_int_glob;, tot/[n]=(double) grid[JDIR].np_int_glob;, tot/[n]=(double) grid[KDIR].np_int_glob;)
int type
output format (DBL, FLT, ...) - one per output
int * stag_var
centered or staggered variable - same for all
void SetOutput(Data *d, Runtime *runtime)
#define ARRAY_2D(nx, ny, type)
double *** Ax1
Vector potential component in the direction.
double **** Vuser
Array storing user-defined supplementary variables written to disk.
#define QUIT_PLUTO(e_code)
double *** Ax2
Vector potential component in the direction.
long int NX1_TOT
Total number of zones in the X1 direction (boundaries included) for the local processor.
char ** var_name
variable names - same for all
int SetDumpVar(char *var_name, int out_type, int flag)