Functions

output_vtk.c File Reference

Function to write a single variable in VTK "legacy" format. More...

Go to the source code of this file.

Functions

static void output_vtk_2d (MeshS *pM, OutputS *pOut, int nl, int nd)
 Writes 2D data.
static void output_vtk_3d (MeshS *pM, OutputS *pOut, int nl, int nd)
 Writes 3D data.
void output_vtk (MeshS *pM, OutputS *pOut)
 Writes VTK file (single variable).

Detailed Description

Function to write a single variable in VTK "legacy" format.

PURPOSE: Function to write a single variable in VTK "legacy" format. With SMR, dumps are made for all levels and domains, unless nlevel and ndomain are specified in <output> block.

CONTAINS PUBLIC FUNCTIONS:

PRIVATE FUNCTION PROTOTYPES:

Definition in file output_vtk.c.


Function Documentation

void output_vtk ( MeshS pM,
OutputS pOut 
)

Writes VTK file (single variable).

Definition at line 38 of file output_vtk.c.

References ath_error(), MeshS::Domain, MeshS::DomainsPerLevel, DomainS::Grid, OutputS::ndim, OutputS::ndomain, OutputS::nlevel, MeshS::NLevels, output_vtk_2d(), and output_vtk_3d().

Here is the call graph for this function:

static void output_vtk_2d ( MeshS pM,
OutputS pOut,
int  nl,
int  nd 
) [static]
static void output_vtk_3d ( MeshS pM,
OutputS pOut,
int  nl,
int  nd 
) [static]

Writes 3D data.

Definition at line 179 of file output_vtk.c.

References ath_big_endian(), ath_bswap(), ath_error(), ath_fname(), data, MeshS::Domain, GridS::dx1, GridS::dx2, GridS::dx3, free_3d_array(), OutputS::gmax, OutputS::gmin, DomainS::Grid, OutputS::id, minmax3(), GridS::MinX, OutputS::num, nx1, nx2, nx3, OutData3(), MeshS::outfilename, and GridS::time.

Referenced by output_vtk().

Here is the call graph for this function:

Here is the caller graph for this function: