#include "OutputFormat/vtk.h"
#include "Basic/AStringable.hpp"
#include "Basic/String.hpp"
#include "Basic/File.hpp"
#include "Basic/Memory.hpp"
#include <string.h>
Functions | |
static void | end_line (void) |
static void | open_file (const char *filename) |
static void | close_file (void) |
static void | force_big_endian (unsigned char *bytes) |
static void | write_string (const char *str) |
static void | new_section (void) |
static void | write_int (int val) |
static void | write_float (float val) |
static void | write_header (void) |
void | write_variables (int nvars, const int *vardim, const int *centering, const char *const *varname, float **vars, int npts, int ncells) |
void | write_point_mesh (const char *filename, int ub, int npts, float *pts, int nvars, int *vardim, const char *const *varnames, float **vars) |
static int | num_points_for_cell (int celltype) |
void | write_unstructured_mesh (const char *filename, int ub, int npts, float *pts, int ncells, int *celltypes, int *conn, int nvars, int *vardim, int *centering, const char *const *varnames, float **vars) |
void | write_rectilinear_mesh (const char *filename, int ub, int *dims, float *x, float *y, float *z, int nvars, int *vardim, int *centering, const char *const *varnames, float **vars) |
void | write_regular_mesh (const char *filename, int ub, int *dims, int nvars, int *vardim, int *centering, const char *const *varnames, float **vars) |
void | write_curvilinear_mesh (const char *filename, int ub, int *dims, float *pts, int nvars, int *vardim, int *centering, const char *const *varnames, float **vars) |
Variables | |
static FILE * | fp = NULL |
static int | useBinary = 0 |
static int | numInColumn = 0 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void write_curvilinear_mesh | ( | const char * | filename, |
int | ub, | ||
int * | dims, | ||
float * | pts, | ||
int | nvars, | ||
int * | vardim, | ||
int * | centering, | ||
const char *const * | varnames, | ||
float ** | vars | ||
) |
|
static |
|
static |
|
static |
void write_point_mesh | ( | const char * | filename, |
int | ub, | ||
int | npts, | ||
float * | pts, | ||
int | nvars, | ||
int * | vardim, | ||
const char *const * | varnames, | ||
float ** | vars | ||
) |
void write_rectilinear_mesh | ( | const char * | filename, |
int | ub, | ||
int * | dims, | ||
float * | x, | ||
float * | y, | ||
float * | z, | ||
int | nvars, | ||
int * | vardim, | ||
int * | centering, | ||
const char *const * | varnames, | ||
float ** | vars | ||
) |
void write_regular_mesh | ( | const char * | filename, |
int | ub, | ||
int * | dims, | ||
int | nvars, | ||
int * | vardim, | ||
int * | centering, | ||
const char *const * | varnames, | ||
float ** | vars | ||
) |
|
static |
void write_unstructured_mesh | ( | const char * | filename, |
int | ub, | ||
int | npts, | ||
float * | pts, | ||
int | ncells, | ||
int * | celltypes, | ||
int * | conn, | ||
int | nvars, | ||
int * | vardim, | ||
int * | centering, | ||
const char *const * | varnames, | ||
float ** | vars | ||
) |
void write_variables | ( | int | nvars, |
const int * | vardim, | ||
const int * | centering, | ||
const char *const * | varname, | ||
float ** | vars, | ||
int | npts, | ||
int | ncells | ||
) |
|
static |
|
static |
|
static |