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). |
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.
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().
Writes 2D data.
Definition at line 70 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_2d_array(), OutputS::gmax, OutputS::gmin, DomainS::Grid, OutputS::id, minmax2(), GridS::MinX, OutputS::num, GridS::Nx, nx1, nx2, OutData2(), MeshS::outfilename, OutputS::reduce_x1, OutputS::reduce_x2, OutputS::reduce_x3, and GridS::time.
Referenced by output_vtk().
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().