This program views the output of a time series saved using IlluMultiSave(). It basically just switches between timesteps; future versions may be more interesting. The neat part of it is that it loads multiprocessor data and displays it on a single CPU.
#define HELP_STRING "tsview commands:\n <enter> Display next timestep\n b Display previous timestep\n i increment Set the next timestep increment\n ### Jump to timestep ###\n t Toggle Geomview transparency (3-D only)\n v Change field displayed (3-D only)\n d Dump geomview to picture (3-D only), creates basename-f%d.ppm\n a Dump all timesteps to pictures (3-D only)\n p [v1 v2 ...] Set contour values for plotting or \"auto\" (3-D only)\n r Reloads entries in a directory\n s size Set maximum dimension of PETSc viewer windows (2-D only)\n cx, cy, cz Toggle xcut, ycut, zcut (cut last row/plane of periodic DA)\n gx30-90, y,z Set plot x range to 30-90, same for y and z\n h/? Print this information\n q/x Quit tsview\n"
#define DPRINTF( fmt, args... )
#define __FUNCT__ "myfilter"
#define __FUNCT__ "main"
line_read
Functions for reading the command line
and avoiding reading empty lines
Probably this function is not Petsc
safe, but we'll see.
int main ( int argc, char* argv[] )
int myfilter ( const struct dirent* direntry )